[Fixed]-Custom CMSPlugin migrations in Django 1.7

1👍

Note these models don’t have any migrations.

That’s your problem right there. The way you are using CMSPlugin as a base for your new model requires that your model be subject to migration because CMSPlugin is also subject to migrations.

The documentation says:

Be aware, however, that unmigrated apps cannot depend on migrated apps, by the very nature of not having migrations.

The documentation says more but the details it adds are not particularly useful to determine whether you are in trouble. However, you can look at this ticket where the reporter was trying to create a custom user model by inheriting from django.contrib.auth.models.User and ran into the issue you ran into. See also this other ticket in which the Django devs decided to write error messages that specifically point out that inheritance is a possible cause of the problem you’ve run into.

👤Louis

Leave a comment