Commits

Anonymous committed 7b91bf8

Add Users and Sites objects to admin site

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

Comments (0)

Files changed (1)

apps/patchwork/admin.py

 from django.contrib import admin
+from django.contrib.sites.models import Site
+from django.contrib.auth.models import User
 from patchwork.models import Project, Person, UserProfile, State, Patch, \
 	     Comment, Bundle
 
 class BundleAdmin(admin.ModelAdmin):
     pass
 admin_site.register(Bundle, BundleAdmin)
+
+class UserAdmin(admin.ModelAdmin):
+    pass
+admin_site.register(User, UserAdmin)
+
+class SiteAdmin(admin.ModelAdmin):
+    pass
+admin_site.register(Site, SiteAdmin)
+