hi
so i have an async view that uses a models that has a unique field.
i have tried to set unique by both unique=True
and using UniqueConstraint
.
as you know validators that check for uniqness call .exists()
which is a sync operation and it errors when used in async mode.
is there a way that i can call aexists()
instead when the view is async?
it’s worth noting that there are some sync views (django rest) that are using the same model, so i kinda need to wupport both