X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/4b094dbc60c3853814c2523d5772e4cf2884a073..be520c33d81631c9d649b170863c221e3169c742:/admin/base.py?ds=inline diff --git a/admin/base.py b/admin/base.py index bdf9f38..457db17 100644 --- a/admin/base.py +++ b/admin/base.py @@ -29,4 +29,7 @@ class EntityAdmin(admin.ModelAdmin): save_on_top = True -admin.site.register(Tag) \ No newline at end of file +class TagAdmin(admin.ModelAdmin): + prepopulated_fields = {"slug": ("name",)} + +admin.site.register(Tag, TagAdmin) \ No newline at end of file