Open nikatlas opened 8 months ago
Hi.
Thank you for the report. What version of Django do you use?
Django v3.2 Python v3.8.10
@idlesign How do you normally work with the CustomModelPage without getting a migration? An abstract model is not allowed to be registered in the admin
How do you normally work with the CustomModelPage without getting a migration? An abstract model is not allowed to be registered in the admin
Interestingly enough I see no migrations for Custom Model Page inherited classes. Although the code is similar to yours (and as in docs). Yet my setup currently is Django 4.2, I'll try to reproduce the behaviour to find out the reason.
Heh, I missed that you run makemigrations
without an application name.
This indeed will create a new migration file in django.contrib.admin.migrations
.
So the workaround is to specify the application name, e.g. makemigrations app
.
It'll require a futher investigation to prevent migration creation.
Hello!
I want to utilise the
CustomModelPage
to do some custom action requiring user input without a model.Issue
Running
python manage.py makemigrations
a new migration is generated in the admin package.Expectation
I would expect no model to be required for this.
Environment
Django v3.2 Python v3.8.10