admin.py 440 Bytes
Newer Older
1
# Django Imports
2
from django.contrib import admin
3
# App Imports
4
from go.models import URL, RegisteredUser
5

6

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


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

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