fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0917e94
)
Usunięcie różowego kolorku w tle elementów blokowych oraz zwiększenie czcionki, którą...
author
zuber
<marek@stepniowski.com>
Thu, 22 Oct 2009 16:14:45 +0000
(18:14 +0200)
committer
zuber
<marek@stepniowski.com>
Thu, 22 Oct 2009 16:14:45 +0000
(18:14 +0200)
apps/api/admin.py
patch
|
blob
|
history
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)