Changes between Version 1 and Version 2 of Ticket #23305
- Timestamp:
- Aug 16, 2014, 5:35:05 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23305
- Property Component Uncategorized → Migrations
- Property Severity Normal → Release blocker
- Property Summary Models that are imported on app's import time are invisible to makemessages → Models that are imported on app's import time are invisible to makemigrations
-
Ticket #23305 – Description
v1 v2 1 Models that are imported in app's __init__.py, or by modules imported from that become invisible for Django if app uses apps.py and AppConfig.1 Models that are imported in app's `__init__.py`, or by modules imported from that become invisible for Django if app uses apps.py and AppConfig. 2 2 3 To reproduce it create app with basic config and simple model in models.py. If this model is imported inside __init__.py, or other module imported in __init__.py, it will become invisible to makemigrations.3 To reproduce it create app with basic config and simple model in models.py. If this model is imported inside `__init__.py`, or other module imported in `__init__.py`, it will become invisible to makemigrations. 4 4 5 5 Tried this both with default_app_config as well as giving full path to AppConfig in INSTALLED_APPS.