Commit 0e0427d3 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

basic custom, far more useful admin interface-- to be extended or updated with changes to models

parent 40527b53
......@@ -2,5 +2,12 @@ from django.contrib import admin
from go.models import URL, RegisteredUser
admin.site.register(URL)
admin.site.register(RegisteredUser)
class URLAdmin(admin.ModelAdmin):
list_display = ("target", "short", "owner", "clicks", "date_created", "expires")
class RegisteredUserAdmin(admin.ModelAdmin):
list_display = ("username", "full_name", "approved")
admin.site.register(URL, URLAdmin)
admin.site.register(RegisteredUser, RegisteredUserAdmin)
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