~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlggz/admin.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from django.contrib import admin
13
13
from models import GGZAuth
14
14
 
 
15
 
15
16
class GGZAdmin(admin.ModelAdmin):
16
17
    list_display = ['user', 'password', 'permissions']
17
18
    list_per_page = 20
19
20
    search_fields = ['user__username', 'user__first_name', 'user__last_name']
20
21
    fieldsets = (
21
22
        (None, {
22
 
                'fields': ('user', 'password', 'permissions')
23
 
                }
24
 
         ),
25
 
        )
 
23
            'fields': ('user', 'password', 'permissions')
 
24
        }
 
25
        ),
 
26
    )
26
27
 
27
28
admin.site.register(GGZAuth, GGZAdmin)