Hi,
Someone please, help to resolve my problem with iregex !
using Django 1.9
mysql Server version: 5.7.13-0ubuntu0.16.04.2 (Ubuntu)
python 2.7
I got the record in mysql in table Order_process:
+-----+------+---------------------------+---------------------+----------+------------+
| id | step | step_description | date_step | order_id | manager_id |
+-----+------+---------------------------+---------------------+----------+------------+
| 241 | 1 | заказ роутера | 2016-08-21 11:03:16 | 170 | 1 |
+-----+------+---------------------------+---------------------+----------+------------+
next, I'd like to get thi record by queryset:
str_iregex = '^заказ роутер.$'
orders = Order_process.objects.filter(step_description__iregex = str_iregex , step = 1).order_by('-id')
But the got no result.
pls help
-- Someone please, help to resolve my problem with iregex !
using Django 1.9
mysql Server version: 5.7.13-0ubuntu0.16.04.2 (Ubuntu)
python 2.7
I got the record in mysql in table Order_process:
+-----+------+---------------------------+---------------------+----------+------------+
| id | step | step_description | date_step | order_id | manager_id |
+-----+------+---------------------------+---------------------+----------+------------+
| 241 | 1 | заказ роутера | 2016-08-21 11:03:16 | 170 | 1 |
+-----+------+---------------------------+---------------------+----------+------------+
next, I'd like to get thi record by queryset:
str_iregex = '^заказ роутер.$'
orders = Order_process.objects.filter(step_description__iregex = str_iregex , step = 1).order_by('-id')
But the got no result.
pls help
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/8da615e3-c990-4359-9851-32d12b5d9fb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment