fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2cdae0f
)
Fixes #4188: Ordering editing phases directly at the phases list page.
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Apr 2021 10:34:00 +0000
(12:34 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Apr 2021 10:34:00 +0000
(12:34 +0200)
src/documents/admin.py
patch
|
blob
|
history
diff --git
a/src/documents/admin.py
b/src/documents/admin.py
index
b793303
..
21390a7
100644
(file)
--- a/
src/documents/admin.py
+++ b/
src/documents/admin.py
@@
-11,10
+11,14
@@
class BookAdmin(admin.ModelAdmin):
search_fields = ['title']
search_fields = ['title']
+class TagAdmin(admin.ModelAdmin):
+ list_display = ['name', 'ordering']
+ list_editable = ['ordering']
+
admin.site.register(models.Project)
admin.site.register(models.Book, BookAdmin)
admin.site.register(models.Chunk)
admin.site.register(models.Project)
admin.site.register(models.Book, BookAdmin)
admin.site.register(models.Chunk)
-admin.site.register(models.Chunk.tag_model)
+admin.site.register(models.Chunk.tag_model
, TagAdmin
)
admin.site.register(models.Image)
admin.site.register(models.Image)
-admin.site.register(models.Image.tag_model)
+admin.site.register(models.Image.tag_model
, TagAdmin
)