Commit 40458e8a authored by Baptiste Jonglez's avatar Baptiste Jonglez Committed by jocelyn

Display comment in the DSL admin

parent 6ef86805
......@@ -18,7 +18,7 @@ class DSLConfigurationInline(admin.StackedInline):
class DSLConfigurationAdmin(ConfigurationAdminFormMixin, PolymorphicChildModelAdmin):
base_model = DSLConfiguration
list_display = ('offersubscription', 'activated', 'full_login',
'radius_group')
'radius_group', 'comment')
list_filter = ('activated', 'radius_group')
search_fields = ('login',
# TODO: searching on member directly doesn't work
......@@ -26,8 +26,8 @@ class DSLConfigurationAdmin(ConfigurationAdminFormMixin, PolymorphicChildModelAd
'offersubscription__member__last_name',
'offersubscription__member__email')
actions = (delete_selected, "activate", "deactivate")
fields = ('offersubscription', 'phone_number', 'activated', 'radius_group',
'login', 'password')
fields = ('offersubscription', 'phone_number', 'comment',
'activated', 'radius_group', 'login', 'password')
inline = DSLConfigurationInline
def get_readonly_fields(self, request, obj=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment