authority record, time frame list displays

This commit is contained in:
Sanj 2011-08-31 15:21:03 +05:30
parent 62519ff4ff
commit 7eb4b7bbb4

View File

@ -70,6 +70,7 @@ class relationsForm(forms.ModelForm):
class AuthorityRecordAdmin(admin.ModelAdmin):
form = authRecordForm
list_display = ('__unicode__', 'uri',)
search_fields = ['preferred_name']
class RelationshipAdmin(admin.ModelAdmin):
@ -113,7 +114,7 @@ class TimeFrameAdmin(admin.ModelAdmin):
list_display = ('description', 'start_date', 'end_date', 'start_granularity', 'end_granularity',)
admin.site.register(Feature, FeatureAdmin)
admin.site.register(TimeFrame)
admin.site.register(TimeFrame, TimeFrameAdmin)
admin.site.register(FeatureType, FeatureTypeAdmin)
admin.site.register(Relationship, RelationshipAdmin)
admin.site.register(AuthorityRecord, AuthorityRecordAdmin)