[Django] #30228: DeleteModel migration's name argument is supposed to be lowercase

2 views
Skip to first unread message

Django

unread,
Mar 1, 2019, 7:50:29 AM3/1/19
to django-...@googlegroups.com
#30228: DeleteModel migration's name argument is supposed to be lowercase
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
JerzySpendel |
Type: | Status: new
Uncategorized |
Component: | Version: 2.1
Migrations | Keywords: DeleteModel
Severity: Normal | migration
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In every other migration: `CreateModel`, `AlterModelTable`,
`AlterModelOptions`, `RenameField` and so on, the first argument is
supposed to be the name of a model, so if model's name is `ExampleModel`,
then the first argument is supposed to be `ExampleModel`, EXCEPT
`DeleteModel` where it should be in lower case, so `examplemodel`. If it
really has to be like this, then the documentation should at least mention
about that. It took me some time, to figure that out.

--
Ticket URL: <https://code.djangoproject.com/ticket/30228>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 1, 2019, 12:37:04 PM3/1/19
to django-...@googlegroups.com
#30228: DeleteModel migration's name argument is supposed to be lowercase
-------------------------------------+-------------------------------------
Reporter: JerzySpendel | Owner: nobody
Type: Uncategorized | Status: closed
Component: Migrations | Version: 2.1
Severity: Normal | Resolution: needsinfo
Keywords: DeleteModel | Triage Stage:
migration | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => needsinfo


Comment:

I just did a test and the `DeleteModel` operation didn't use a lowercased
model name. Please explain the issue you saw.

--
Ticket URL: <https://code.djangoproject.com/ticket/30228#comment:1>

Reply all
Reply to author
Forward
0 new messages