why you need rewrite query in ORM

you can use "raw query" in django

https://docs.djangoproject.com/en/1.11/topics/db/sql/

2017-08-25 4:25 GMT+08:00 Николай Инкогнито <[email protected]>:

> SELECT * FROM T WHERE REPLACE(T.field, '-', ' ') = REPLACE(VALUE,'-', ' ')
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/c0f10848-ac43-43ad-87a5-1a24e902cbe9%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c0f10848-ac43-43ad-87a5-1a24e902cbe9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BmnDnqoqoMaEQxv6vmJxXtWnHtSPZPw%2BEUxSvwKQZLZh6u%2BEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to