#32741: Tutorial Part 2 throws models.W042 warnings when making migrations
-------------------------------------+-------------------------------------
Reporter: Katie McLaughlin | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Katie McLaughlin):
There are two ways that this could be solved:
* Adjusting the template `settings.py` to add `DEFAULT_AUTO_FIELD =
'django.db.models.AutoField'`
* Adjusting the tutorial models to include `id =
models.AutoField(primary_key=True)` for each model.
I want to say the tutorial model update is better because it means not
touching the template project, but I'm also not sure how important this
default is with respect to having the default at start for new projects.
--
Ticket URL: <https://code.djangoproject.com/ticket/32741#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.805af3f7886dd45e613ca233b54e7c3d%40djangoproject.com.