- Timestamp:
- 05/20/11 17:26:48 (13 years ago)
- Location:
- trunk/sara_cmt/sara_cmt/cluster
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/sara_cmt/cluster/admin.py
r12338 r12998 198 198 class TelephonenumberAdmin(admin.ModelAdmin): 199 199 fieldsets = ( 200 ('Owner', {'fields': (('connection', ' type'),)}),200 ('Owner', {'fields': (('connection', 'number_type'),)}), 201 201 ('Number', {'fields': (('country', 'areacode', 'subscriber_number'),)}), 202 202 GlobalAdmin.extra_fieldset) 203 list_display = ('connection', ' type', '__unicode__')204 list_filter = (' type', 'country', 'areacode') + GlobalAdmin.list_filter203 list_display = ('connection', 'number_type', '__unicode__') 204 list_filter = ('number_type', 'country', 'areacode') + GlobalAdmin.list_filter 205 205 206 206 207 207 class WarrantyContractAdmin(admin.ModelAdmin): 208 208 fieldsets = ( 209 (None, {'fields': ('label', ' type')}),209 (None, {'fields': ('label', 'warranty_type')}), 210 210 ('Period', {'fields': ('date_from', 'date_to')}), 211 211 GlobalAdmin.extra_fieldset) -
trunk/sara_cmt/sara_cmt/cluster/models.py
r12997 r12998 37 37 def __unicode__(self): 38 38 return self.name or None 39 40 def validate_unique(exclude=None):41 logger.error('Called VALIDATE_UNIQUE')42 39 43 40
Note: See TracChangeset
for help on using the changeset viewer.