admin.py 409 Bytes
Newer Older
1
from django.contrib import admin
2
from go.models import URL, RegisteredUser
3

4

5 6 7 8 9
class URLAdmin(admin.ModelAdmin):
    list_display = ("target", "short", "owner", "clicks", "date_created", "expires")


class RegisteredUserAdmin(admin.ModelAdmin):
10
    list_display = ("username", "full_name", "organization", "approved")
11 12 13

admin.site.register(URL, URLAdmin)
admin.site.register(RegisteredUser, RegisteredUserAdmin)