#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 , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Note:
See TracTickets
for help on using tickets.
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