Skip to content

Commit

Permalink
admin.py updates in prospects
Browse files Browse the repository at this point in the history
  • Loading branch information
sebzur committed Oct 27, 2012
1 parent 53aa4ba commit df130d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synergy/contrib/prospects/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class FieldAdmin(admin.ModelAdmin):
list_display = ('variant', 'verbose_name', 'db_field', 'lookup', 'link_to', 'as_object_link', 'get_db_type', 'has_choices')
list_filter = ('variant',)

class FieldURLAdmin(admin.ModelAdmin):
list_display = ('field', 'url', 'reverse_url')
list_filter = ('field__variant',)

class ListRepresentationAdmin(admin.ModelAdmin):
list_display = ('variant', 'name', 'representation_type', 'representation_id', )
Expand Down Expand Up @@ -54,7 +57,7 @@ class VariantMenuAdmin(admin.ModelAdmin):
admin.site.register(UserRelation)

admin.site.register(Field, FieldAdmin)
admin.site.register(FieldURL)
admin.site.register(FieldURL, FieldURLAdmin)

admin.site.register(Operator)
admin.site.register(ProspectOperator)
Expand Down

0 comments on commit df130d4

Please sign in to comment.