Fixing a bug in BlogView's tag_view where it would provide a QuerySet as `tag` instea...
[philo.git] / admin / base.py
index bdf9f38..457db17 100644 (file)
@@ -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