| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | try: |
||
| 14 | def get_action_model(): |
||
| 15 | """ |
||
| 16 | Returns the Action model that is active in this project. |
||
| 17 | """ |
||
| 18 | try: |
||
| 19 | return django_apps.get_model(ACTSTREAM_ACTION_MODEL) |
||
| 20 | except ValueError: |
||
| 21 | raise ImproperlyConfigured("ACTSTREAM_ACTION_MODEL must be of the form 'app_label.model_name'") |
||
| 22 | except LookupError: |
||
| 23 | raise ImproperlyConfigured( |
||
| 24 | "ACTSTREAM_ACTION_MODEL refers to model '%s' that has not been installed" % ACTSTREAM_ACTION_MODEL |
||
| 25 | ) |
||
| 40 |