admin changes
This commit is contained in:
parent
332191af9a
commit
435e9e9c21
|
@ -40,6 +40,10 @@ class FeatureTypeFilter(SimpleListFilter):
|
|||
return queryset.filter(feature_type=val)
|
||||
'''
|
||||
|
||||
class AuthorityRecordAdmin(admin.ModelAdmin):
|
||||
search_fields = ['preferred_name']
|
||||
|
||||
|
||||
class FeatureNamesInline(admin.StackedInline):
|
||||
model = Name
|
||||
extra = 0
|
||||
|
@ -83,4 +87,4 @@ admin.site.register(Feature, FeatureAdmin)
|
|||
admin.site.register(TimeFrame)
|
||||
admin.site.register(FeatureType, FeatureTypeAdmin)
|
||||
admin.site.register(Relationship)
|
||||
admin.site.register(AuthorityRecord)
|
||||
admin.site.register(AuthorityRecord, AuthorityRecordAdmin)
|
||||
|
|
|
@ -160,6 +160,9 @@ class TimeFrame(models.Model):
|
|||
start_granularity = models.CharField(max_length=64, choices=GRANULARITY_CHOICES)
|
||||
end_granularity = models.CharField(max_length=64, choices=GRANULARITY_CHOICES)
|
||||
|
||||
class Meta:
|
||||
ordering = ['description']
|
||||
|
||||
def __unicode__(self):
|
||||
return self.description
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user