From df130d474ba9f40d01d53aabf70ac82b7ba1cbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20=C5=BBurek?= Date: Sat, 27 Oct 2012 17:14:54 +0200 Subject: [PATCH] admin.py updates in prospects --- synergy/contrib/prospects/admin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synergy/contrib/prospects/admin.py b/synergy/contrib/prospects/admin.py index ec33ef0..3d5efdb 100644 --- a/synergy/contrib/prospects/admin.py +++ b/synergy/contrib/prospects/admin.py @@ -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', ) @@ -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)