Changeset 752ebd9


Ignore:
Timestamp:
May 25, 2012 5:54:52 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:
9fa4646
Parents:
6b3e6e5
git-author:
yomguy <yomguy@…> (25/05/2012 17:54:52)
git-committer:
yomguy <yomguy@…> (25/05/2012 17:54:52)
Message:

fiw format str

Location:
telemeta
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • telemeta/admin.py

    r6b3e6e5 r752ebd9  
    7777 
    7878class FormatAdmin(admin.ModelAdmin): 
    79     search_fields = ['code', 'vendor', 'item__code'] 
     79    search_fields = ['original_code', 'tape_reference'] 
    8080 
    8181class UserProfileInline(admin.StackedInline): 
  • telemeta/models/format.py

    r305d2e3 r752ebd9  
    8888    def __unicode__(self): 
    8989        if self.physical_format: 
    90             return self.physical_format.value 
     90            return ' - '.join([self.physical_format.value, self.original_code, 
     91                               self.item.public_id]) 
    9192        else: 
    9293            return 'Unknown' 
Note: See TracChangeset for help on using the changeset viewer.