Changeset 12998 for trunk


Ignore:
Timestamp:
05/20/11 17:26:48 (13 years ago)
Author:
sil
Message:

forgot to checkin fieldname-changes for the admin

Location:
trunk/sara_cmt/sara_cmt/cluster
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/sara_cmt/cluster/admin.py

    r12338 r12998  
    198198class TelephonenumberAdmin(admin.ModelAdmin):
    199199    fieldsets = (
    200         ('Owner', {'fields': (('connection', 'type'),)}),
     200        ('Owner', {'fields': (('connection', 'number_type'),)}),
    201201        ('Number', {'fields': (('country', 'areacode', 'subscriber_number'),)}),
    202202        GlobalAdmin.extra_fieldset)
    203     list_display = ('connection', 'type', '__unicode__')
    204     list_filter  = ('type', 'country', 'areacode') + GlobalAdmin.list_filter
     203    list_display = ('connection', 'number_type', '__unicode__')
     204    list_filter  = ('number_type', 'country', 'areacode') + GlobalAdmin.list_filter
    205205
    206206
    207207class WarrantyContractAdmin(admin.ModelAdmin):
    208208    fieldsets = (
    209         (None, {'fields': ('label', 'type')}),
     209        (None, {'fields': ('label', 'warranty_type')}),
    210210        ('Period', {'fields': ('date_from', 'date_to')}),
    211211        GlobalAdmin.extra_fieldset)
  • trunk/sara_cmt/sara_cmt/cluster/models.py

    r12997 r12998  
    3737    def __unicode__(self):
    3838        return self.name or None
    39 
    40     def validate_unique(exclude=None):
    41         logger.error('Called VALIDATE_UNIQUE')
    4239
    4340
Note: See TracChangeset for help on using the changeset viewer.