#32805: makemigrations seems to generate an unnecessary AlterField
---------------------------------+--------------------------------------
Reporter: Matthew Cornell | Owner: nobody
Type: Uncategorized | Status: closed
Component: Migrations | Version: 3.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Matthew Cornell):
Genius! Thanks very much.
Replying to [comment:1 Christos Georgiou]:
> In 0017 you AlterField to:
> `field=models.DateTimeField(db_index=True, default=None, null=False),`
> which doesn't make much sense (null=False and yet default=None).
> Have you tried to remove the AlterField's `default=None` to see if still
0018 is produced by makemigrations?
--
Ticket URL: <https://code.djangoproject.com/ticket/32805#comment:3>
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/072.198f25141aea423740295ad7f14a1fff%40djangoproject.com.