Opened 6 years ago

Closed 6 years ago

#30228 closed Uncategorized (needsinfo)

DeleteModel migration's name argument is supposed to be lowercase

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

Description

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.

Change History (1)

comment:1 by Tim Graham, 6 years ago

Resolution: needsinfo
Status: newclosed

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

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