Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16844 closed Uncategorized (invalid)

invalid model name reference.

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
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

https://docs.djangoproject.com/en/dev/howto/initial-data/

Model name in the yaml example should be capitalized, otherwise you get the error "Invalid model identifier:"

This:

  • model: myapp.person

should be:

  • model: myapp.Person

Thanks!

Change History (2)

comment:1 Changed 5 years ago by anonymous

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

comment:2 Changed 5 years ago by Julien Phalip

Not sure who closed this ticket or why. But anyway, it does not seem valid indeed, as by looking at Django's tests it seems normal for the model names to be lowercased: source:django/trunk/tests/modeltests/serializers/tests.py#L401

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