##// END OF EJS Templates
Simplified tag alias admin
neko259 -
r1886:6f288d44 default
parent child Browse files
Show More
@@ -90,6 +90,7 b' class TagAdmin(admin.ModelAdmin):'
90 super().save_model(request, obj, form, change)
90 super().save_model(request, obj, form, change)
91 for thread in obj.get_threads().all():
91 for thread in obj.get_threads().all():
92 thread.refresh_tags()
92 thread.refresh_tags()
93
93 list_display = ('name', 'thread_count', 'display_children')
94 list_display = ('name', 'thread_count', 'display_children')
94 search_fields = ('name',)
95 search_fields = ('name',)
95 readonly_fields = ('name',)
96 readonly_fields = ('name',)
@@ -98,6 +99,8 b' class TagAdmin(admin.ModelAdmin):'
98 @admin.register(TagAlias)
99 @admin.register(TagAlias)
99 class TagAliasAdmin(admin.ModelAdmin):
100 class TagAliasAdmin(admin.ModelAdmin):
100 list_display = ('locale', 'name', 'parent')
101 list_display = ('locale', 'name', 'parent')
102 list_filter = ('locale',)
103 search_fields = ('name',)
101
104
102
105
103 @admin.register(Thread)
106 @admin.register(Thread)
General Comments 0
You need to be logged in to leave comments. Login now