fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cutting stuff out.
[wolnelektury.git]
/
src
/
catalogue
/
admin.py
diff --git
a/src/catalogue/admin.py
b/src/catalogue/admin.py
index
ebd14b9
..
ad5e209
100644
(file)
--- a/
src/catalogue/admin.py
+++ b/
src/catalogue/admin.py
@@
-16,6
+16,7
@@
class TagAdmin(admin.ModelAdmin):
search_fields = ('name',)
ordering = ('name',)
readonly_fields = ('occurrences',)
+ raw_id_fields = ['user']
def occurrences(self, tag):
return tag.items.count()