Opened 9 years ago

Closed 9 years ago

#26437 closed Uncategorized (invalid)

Command "makemigrations" don't create migration if non abstract class empty

Reported by: Atterratio Owned by: nobody
Component: Migrations Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have some code like this:

class MyModel(models.Model):
    pass

I expect, that it create table with fields of parrent class. If I run "makemigrations" in output I have "No changes detected", but "migrate --run-syncdb" create tabels.

Change History (2)

comment:1 by Atterratio, 9 years ago

Component: Database layer (models, ORM)Migrations

comment:2 by Atterratio, 9 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top