[Answer]-How to make a slug field autocomplete in a form?

1👍

admin.py

from .models import Question

class QuestionAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("naslov",)}


admin.site.register(Question, QuestionAdmin)

Leave a comment