1👍
✅
admin.py
from .models import Question
class QuestionAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("naslov",)}
admin.site.register(Question, QuestionAdmin)
Source:stackexchange.com