| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | try: |
||
| 28 | def get_follow_model(): |
||
| 29 | """ |
||
| 30 | Returns the Follow model that is active in this project. |
||
| 31 | """ |
||
| 32 | try: |
||
| 33 | return django_apps.get_model(ACTSTREAM_FOLLOW_MODEL) |
||
| 34 | except ValueError: |
||
| 35 | raise ImproperlyConfigured("ACTSTREAM_FOLLOW_MODEL must be of the form 'app_label.model_name'") |
||
| 36 | except LookupError: |
||
| 37 | raise ImproperlyConfigured( |
||
| 38 | "ACTSTREAM_FOLLOW_MODEL refers to model '%s' that has not been installed" % ACTSTREAM_FOLLOW_MODEL |
||
| 39 | ) |
||
| 40 |