fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zmiana podkatalogu, w którym filebrowser trzyma miniaturki obrazków na thumbnails.
[redakcja.git]
/
apps
/
api
/
admin.py
diff --git
a/apps/api/admin.py
b/apps/api/admin.py
index
efa64f3
..
332935d
100644
(file)
--- a/
apps/api/admin.py
+++ b/
apps/api/admin.py
@@
-1,6
+1,9
@@
from django.contrib import admin
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)