Usunięcie różowego kolorku w tle elementów blokowych oraz zwiększenie czcionki, którą...
authorzuber <marek@stepniowski.com>
Thu, 22 Oct 2009 16:14:45 +0000 (18:14 +0200)
committerzuber <marek@stepniowski.com>
Thu, 22 Oct 2009 16:14:45 +0000 (18:14 +0200)
apps/api/admin.py

index efa64f3..332935d 100644 (file)
@@ -1,6 +1,9 @@
 from django.contrib import admin
 
-import api.models
+from api import models
 
-admin.site.register(api.models.PullRequest)
-admin.site.register(api.models.PartCache)
+class PullRequestAdmin(admin.ModelAdmin):
+    list_display = ('comitter', 'timestamp', 'comment', 'document', 'source_revision')
+
+admin.site.register(models.PullRequest, PullRequestAdmin)
+admin.site.register(models.PartCache)