#22581: Field.get_default() causes migration to fail if non-string value returned ---------------------------------+---------------------------------------- Reporter: martin.tirsel@… | Owner: andrewgodwin Type: Bug | Status: assigned Component: Migrations | Version: master Severity: Release blocker | Resolution: Keywords: migration | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+----------------------------------------
Comment (by akaariai): Isn't the correct method to call get_db_prep_value()? Looking at DateTimeField's implementation it seems get_prep_value() might not be enough. -- Ticket URL: <https://code.djangoproject.com/ticket/22581#comment:5> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/081.34513d66844b58100a3cf2bab7bb4376%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.