#32805: makemigrations seems to generate an unnecessary AlterField
-------------------------------------+-------------------------------------
     Reporter:  Matthew Cornell      |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     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 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: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/072.255564718f217aaf40bddc920695cf59%40djangoproject.com.

Reply via email to