Ignore:
Timestamp:
May 21, 2012 5:43:59 PM (2 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, generic, lam, lam2, mapsv3, merge, nlivemulti, release/1.4.4, sabiod, server, storage, telecaster
Children:
5addd73
Parents:
bc866e5
git-author:
yomguy <yomguy@…> (21/05/2012 17:43:59)
git-committer:
yomguy <yomguy@…> (21/05/2012 17:43:59)
Message:

fix item add with format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/format.py

    rbc866e5 rc89e8e54  
    5454    """ Physical format object as proposed by the LAM""" 
    5555 
    56     item                  = ForeignKey('MediaItem', related_name="format", verbose_name = _("item")) 
     56    item                  = ForeignKey('MediaItem', related_name="format", verbose_name = _("item"), 
     57                                       blank=True, null=True, on_delete=models.SET_NULL) 
    5758    original_format       = WeakForeignKey(OriginalFormat, related_name="format", 
    5859                                     verbose_name = _("original format")) 
Note: See TracChangeset for help on using the changeset viewer.