B
B
BLAx22019-05-17 13:39:02
Django
BLAx2, 2019-05-17 13:39:02

Django prepopulated_fields outside admin?

How to use internal Cyrillic transliteration mechanism for forms with slug fields outside Admin (prepopulated_fields = {"slug": ("name")})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JRazor, 2019-05-17
@JRazor

Slugify
Update: Ah yes, sorry I misunderstood the question. In Django itself, there is no such option, because there the form is a handler. You can, of course, make a bunch of API + JS + form, but this is processing time and all that.
I would advise myself to build a transliterator in JS like this https://gist.github.com/diolavr/d2d50686cb5a472f5696 and associate it with form processing. In terms of resources, it will be cheaper and will work faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question