Ticket #254 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

Default Time/DateTime values are not quoted.

Reported by: anonymous Owned by: andrew
Priority: minor Milestone: 0.6.2
Component: migrations Version: 0.6
Keywords: Cc:


There is a bug with default arguments for datetime and time values:

south/db/generic.py (line 428, in 0.6.1):

elif isinstance(default, datetime.date):

Should read:

elif isinstance(default, datetime.date) or isinstance(default, datetime.time) or isinstance(default, datetime.datetime):

This would allow for migrations using one of these defaults to actually run.

Change History

comment:1 Changed 6 years ago by matt@…

Oh, forgot to add my email address.

comment:2 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.6.2

Fixed in [b2bc7d83b231].

Note: See TracTickets for help on using tickets.