Changeset 91567b1


Ignore:
Timestamp:
May 22, 2012 7:40:32 PM (3 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, crem3, 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, search, server, storage, telecaster
Children:
39a8813
Parents:
cf7f390
git-author:
yomguy <yomguy@…> (22/05/2012 19:40:32)
git-committer:
yomguy <yomguy@…> (22/05/2012 19:40:32)
Message:

fix physical format

Location:
telemeta
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/enum.py

    rcf7f390 r91567b1  
    200200        verbose_name = _("tape vendor") 
    201201 
    202  
    203 # Original 
    204  
    205 class ChannelNumber(Enumeration): 
    206     "Channel number" 
     202class NumberOfChannels(Enumeration): 
     203    "Number of channels" 
    207204 
    208205    class Meta(MetaEnumeration): 
     
    210207        verbose_name = _("number of channels") 
    211208 
    212 class OriginalFormat(Enumeration): 
    213     "Item original format" 
    214  
    215     class Meta(MetaEnumeration): 
    216         db_table = 'original_format' 
    217         verbose_name = _("original format") 
    218  
    219209class OriginalLocation(Enumeration): 
    220     "Item original location" 
     210    "Location of th original item or collection" 
    221211 
    222212    class Meta(MetaEnumeration): 
  • telemeta/models/format.py

    rcf7f390 r91567b1  
    5656    item                  = ForeignKey('MediaItem', related_name="format", verbose_name = _("item"), 
    5757                                       blank=True, null=True, on_delete=models.SET_NULL) 
    58     original_format       = WeakForeignKey(OriginalFormat, related_name="format", 
    59                                      verbose_name = _("original format")) 
     58    physical_format       = WeakForeignKey(PhysicalFormat, related_name="format", 
     59                                     verbose_name = _("physical format")) 
    6060    original_code         = CharField(_('original code')) 
    6161    original_number       = CharField(_('original number')) 
     
    6565    original_location     = WeakForeignKey(OriginalLocation, related_name="format", 
    6666                                        verbose_name = _("original location")) 
    67     original_channels     = WeakForeignKey(ChannelNumber, related_name="format", 
     67    original_channels     = WeakForeignKey(NumberOfChannels, related_name="format", 
    6868                                        verbose_name = _("number of channels")) 
    6969    original_audio_quality = TextField(_('audio quality')) 
Note: See TracChangeset for help on using the changeset viewer.