X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/bc6587a11ccc72c7f4bf525f9b37fedc15f8bfa5..084544e4f7c9269b1445a9e5109fa641a3e1aaac:/apps/api/admin.py diff --git a/apps/api/admin.py b/apps/api/admin.py index efa64f3a..332935d8 100644 --- a/apps/api/admin.py +++ b/apps/api/admin.py @@ -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)