~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlggz/admin.py

  • Committer: Holger Rapp
  • Date: 2016-08-08 10:06:42 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: sirver@gmx.de-20160808100642-z62vwqitxoyl5fh4
Added the apt-get update script I run every 30 days.

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
 
 
16
15
class GGZAdmin(admin.ModelAdmin):
17
 
    list_display = ['user', 'password', 'permissions']
 
16
    list_display = ['user', 'password', 'permissions', 'lastlogin']
18
17
    list_per_page = 20
19
18
    ordering = ['-user']
20
19
    search_fields = ['user__username', 'user__first_name', 'user__last_name']
21
20
    fieldsets = (
22
21
        (None, {
23
 
            'fields': ('user', 'password', 'permissions')
24
 
        }
25
 
        ),
26
 
    )
 
22
                'fields': ('user', 'password', 'permissions')
 
23
                }
 
24
         ),
 
25
        )
27
26
 
28
27
admin.site.register(GGZAuth, GGZAdmin)