#29749 closed Bug (fixed)
Make the migrations loader ignore files starting with an underscore or tilde
Reported by: | Felix Hummel | Owned by: | nobody |
---|---|---|---|
Component: | Migrations | Version: | 2.1 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Steps:
- create a module
_utils.py
insomeapp.migrations
- run
./manage.py migrate
Expected:
- migrations are run
Actual:
django.db.migrations.exceptions.BadMigrationError: Migration _utils in app someapp has no Migration class
Notes:
- Commit that changed the behavior: https://github.com/django/django/commit/29150d5da880ac1db15e47052330790cf1b802d2#diff-a0eecbfcd2a528c7502db192412c5a16L106
- IRC conversation (thanks to knbk for the link to the commit) https://botbot.me/freenode/django/2018-09-10/?msg=104204672&page=8 and https://botbot.me/freenode/django/2018-09-10/?msg=104204672&page=9
Change History (4)
comment:1 by , 6 years ago
Severity: | Normal → Release blocker |
---|---|
Summary: | allow private packages in migrations (regression) → Reallow private packages in migrations |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 6 years ago
Has patch: | set |
---|---|
Summary: | Reallow private packages in migrations → Make the migrations loader ignore files starting with an underscore or tilde |
Note:
See TracTickets
for help on using tickets.
PR