Ignore:
Timestamp:
Apr 3, 2012 11:01:04 AM (2 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test
Children:
2592b8e
Parents:
66fb568
git-author:
yomguy <yomguy@…> (03/04/2012 11:01:04)
git-committer:
yomguy <yomguy@…> (03/04/2012 11:01:04)
Message:

fix default value for duration field with Django 1.4 + MySQL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/core.py

    re73a27f r3511758  
    152152 
    153153    def __init__(self, *args, **kwargs): 
    154         super(DurationField, self).__init__(*args, **normalize_field(kwargs, '00:00')) 
     154        super(DurationField, self).__init__(*args, **normalize_field(kwargs, '0')) 
    155155 
    156156    def db_type(self): 
Note: See TracChangeset for help on using the changeset viewer.