Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 in someapp.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:

Change History (4)

comment:1 by Tim Graham, 6 years ago

Severity: NormalRelease blocker
Summary: allow private packages in migrations (regression)Reallow private packages in migrations
Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham, 6 years ago

Has patch: set
Summary: Reallow private packages in migrationsMake the migrations loader ignore files starting with an underscore or tilde

comment:3 by GitHub <noreply@…>, 6 years ago

Resolution: fixed
Status: newclosed

In 32fbccab:

Fixed #29749 -- Made the migrations loader ignore files starting with a tilde or underscore.

Regression in 29150d5da880ac1db15e47052330790cf1b802d2.

comment:4 by Tim Graham <timograham@…>, 6 years ago

In 5bbcf83:

[2.1.x] Fixed #29749 -- Made the migrations loader ignore files starting with a tilde or underscore.

Regression in 29150d5da880ac1db15e47052330790cf1b802d2.
Backport of 32fbccab406b680bc0a0a8d39a9b95c3a08bbc5a from master

Note: See TracTickets for help on using tickets.
Back to Top