Opened 2 years ago

Closed 2 years ago

#21008 closed Bug (fixed)

MigrationWriter doesn't handle lazy().

Reported by: loic84 Owned by: Tim Graham <timograham@…>
Component: Migrations Version: master
Severity: Normal Keywords:
Cc: info@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

field = Field(verbose_name=_('something')) is sufficient to trip the makemigrations command.

Change History (3)

comment:1 Changed 2 years ago by loic84

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
Last edited 2 years ago by loic84 (previous) (diff)

comment:2 Changed 2 years ago by MarkusH

  • Cc info@… added
  • Triage Stage changed from Unreviewed to Ready for checkin

Your patch works for me on Python 2.7 and 3.3

comment:3 Changed 2 years ago by Tim Graham <timograham@…>

  • Owner set to Tim Graham <timograham@…>
  • Resolution set to fixed
  • Status changed from new to closed

In ff9e1161984f43f34f9ecff5ee80959016447cf3:

Fixed #21008 -- Made MigrationWriter handle Promise objects.

Note: See TracTickets for help on using tickets.
Back to Top