Opened 13 years ago

Closed 13 years ago

Last modified 13 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 by anonymous, 13 years ago

Resolution: invalid
Status: newclosed

comment:2 by Julien Phalip, 13 years ago

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