Changeset 6b3e6e5


Ignore:
Timestamp:
May 25, 2012 5:31:23 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:
752ebd9, 9ac0d41
Parents:
8094d46
git-author:
yomguy <yomguy@…> (25/05/2012 17:31:23)
git-committer:
yomguy <yomguy@…> (25/05/2012 17:31:23)
Message:

fix format import

Location:
telemeta
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • telemeta/admin.py

    r305d2e3 r6b3e6e5  
    7777 
    7878class FormatAdmin(admin.ModelAdmin): 
    79     search_fields = ['code', 'vendor'] 
     79    search_fields = ['code', 'vendor', 'item__code'] 
    8080 
    8181class UserProfileInline(admin.StackedInline): 
  • telemeta/management/commands/telemeta-init-formats.py

    rc8cdfbe r6b3e6e5  
    1818        file = open(path, 'r') 
    1919        for format in file.readlines(): 
    20             if not OriginalFormat.objects.filter(value=format): 
    21                 format = OriginalFormat(value=format) 
     20            if not PhysicalFormat.objects.filter(value=format): 
     21                format = PhysicalFormat(value=format) 
    2222                format.save() 
    2323 
Note: See TracChangeset for help on using the changeset viewer.