X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/617a9462b01ede76eb81f3f440b99fcc344ceb4f..3dce3af2370f6609df6f2d555e6be22017645300:/apps/api/admin.py?ds=sidebyside 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)