Commit Graph

698 Commits

Author SHA1 Message Date
Kuroshini
8a1651bf1f fix permission 2020-01-27 18:45:50 +03:00
Kuroshini
f5da5f71a3 base related qs for cities 2020-01-27 18:45:23 +03:00
dormantman
d2f04d4958 Reformat method structure 2020-01-25 00:42:00 +03:00
dormantman
dd49ee7b6c Reformat restaurant to name 2020-01-24 22:37:06 +03:00
dormantman
809b5ccab7 Fixed employee establishments method 2020-01-24 22:33:39 +03:00
Anatoly
38a6508396 modified role model 2020-01-24 18:04:32 +03:00
alex
ec351bf12a fix plate 2020-01-24 16:44:16 +03:00
Kuroshini
5353c5a67c fix award unbind 2020-01-24 15:46:07 +03:00
alex
34055d3669 fix plate_set 2020-01-24 13:31:00 +03:00
alex
a195ed3a53 menu dishes rud 2020-01-24 10:35:55 +03:00
alex
22b1b3064d is_drinks_included and last_update in serializer 2020-01-24 10:31:07 +03:00
alex
29a7fb82ce dishes menu list-create 2020-01-24 10:21:35 +03:00
alex
792c11e128 transfer formulas menu 2020-01-24 09:20:22 +03:00
alex
9b6918b3b0 menu old_id for transfer 2020-01-24 08:59:11 +03:00
Kuroshini
34977db805 fix permission 2020-01-23 21:03:24 +03:00
Kuroshini
d8d9a97746 remove award from employee 2020-01-23 21:02:43 +03:00
alex
7391463f5a uploads model for menu 2020-01-23 14:47:55 +03:00
alex
874de420f6 drinks and schedule for menu 2020-01-23 14:17:29 +03:00
alex
e5faa90c76 multiply filters for employee 2020-01-23 13:54:36 +03:00
Kuroshini
a6f3384126 change employees search precision const 2020-01-23 11:26:08 +03:00
dormantman
8fb8c49bfe Added employee positions method 2020-01-22 18:48:16 +03:00
a.gorbunov
24c352aeac fix country_id 2020-01-22 13:53:28 +00:00
Kuroshini
0023fcb47b fix photos 2020-01-22 12:19:16 +03:00
dormantman
0688c622cc Fixed structure view 2020-01-21 19:28:29 +03:00
dormantman
88e488e481 Added employee establishments method 2020-01-21 19:19:38 +03:00
Kuroshini
8235c6d172 fix 2020-01-21 12:37:33 +03:00
Kuroshini
416af8d343 photo for employee 2020-01-21 12:33:15 +03:00
alex
61c47e4c79 establishment employee position delete view 2020-01-21 08:17:03 +03:00
alex
a994e7214b fix from_date and to_date for est_employee 2020-01-20 15:51:47 +03:00
alex
beefc82d7b toque number and employee for establishment 2020-01-20 14:20:46 +03:00
alex
215e7b5f19 establishment employee list 2020-01-20 12:13:50 +03:00
Kuroshini
a05db696b0 optimize db queries on /api/back/establishments/employees 2020-01-17 19:08:33 +03:00
Kuroshini
8544098f8c fix command #2 2020-01-17 17:41:53 +03:00
Kuroshini
0bb521b479 fix command 2020-01-17 17:35:50 +03:00
Kuroshini
9ef26594b6 code improvements 2020-01-17 17:33:13 +03:00
Ruslan Stepanov
281aca4fe5 Added establishment saving 2020-01-17 17:33:13 +03:00
dormantman
294c468405 Added live link part 2020-01-17 17:33:13 +03:00
dormantman
0a832136d3 Added update establishment image urls command 2020-01-17 17:33:13 +03:00
Kuroshini
8b4a6b0b74 fix employees search 2020-01-17 16:13:33 +03:00
alex
a8ea238bfc some optimize for employee list 2020-01-17 16:02:00 +03:00
Kuroshini
abfd4d7288 full-text search employees 2020-01-17 14:33:57 +03:00
alex
4a7eb22291 order by position for establishment employee 2020-01-17 14:02:46 +03:00
alex
a915cff73d photo for employee 2020-01-17 13:56:58 +03:00
alex
0695cdce6b available_for_events field for employee 2020-01-17 11:36:13 +03:00
alex
4880b2629d select_related for establishment types serializers 2020-01-17 09:54:05 +03:00
alex
85e5537b82 prefetch_related for employee serializers 2020-01-17 09:43:13 +03:00
alex
f15a93f760 username, first_name, last_name filter for employee 2020-01-17 09:37:15 +03:00
alex
38485292f9 public_mark filter for actual employee 2020-01-17 09:21:51 +03:00
alex
988de09efe toque_number filter for employee 2020-01-17 09:12:18 +03:00
Kuroshini
ea485d9960 optimize images at least for establishments 2020-01-16 19:21:57 +03:00
Kuroshini
3d09333d31 toques for employees in BO 2020-01-16 16:51:33 +03:00
alex
2aec0bdfb4 position filter for employee 2020-01-16 16:23:10 +03:00
Kuroshini
127d15b181 try to fix performance issues
(cherry picked from commit 964ead1)
2020-01-16 12:14:04 +03:00
Anton Gorbunov
de3933aa88 Merge branch 'bug/establishment_optimize' into 'develop'
format condition

See merge request gm/gm-backend!216
2020-01-16 08:11:48 +00:00
a.gorbunov
ca3d8a411c format condition 2020-01-16 08:11:29 +00:00
Anton Gorbunov
37a6ea8d1e Merge branch 'bug/establishment_optimize' into 'develop'
logs and save extension for preview

See merge request gm/gm-backend!215
2020-01-16 07:56:50 +00:00
a.gorbunov
9ea7c25085 logs and save extension for preview 2020-01-16 07:56:34 +00:00
Anton Gorbunov
87d16ef866 Merge branch 'bug/establishment_optimize' into 'develop'
fix condition for optimize establishment preview image

See merge request gm/gm-backend!214
2020-01-16 07:30:00 +00:00
a.gorbunov
f09b5c2367 fix condition for optimize establishment preview image 2020-01-16 07:29:36 +00:00
Anton Gorbunov
cc00d804b1 Merge branch 'bug/establishment_optimize' into 'develop'
fix optimize establishment preview images

See merge request gm/gm-backend!213
2020-01-16 07:14:08 +00:00
a.gorbunov
78da617682 fix optimize establishment preview images 2020-01-16 07:13:31 +00:00
Anton Gorbunov
04987fdbd9 Merge branch 'bug/establishment_optimize' into 'develop'
fix optimize establishment preview images

See merge request gm/gm-backend!212
2020-01-16 07:06:19 +00:00
a.gorbunov
e6dec3a1f0 fix optimize establishment preview images 2020-01-16 06:51:39 +00:00
Anatoly
f86357e041 fix comments 2020-01-15 22:31:30 +03:00
Kuroshini
4b45cab976 employees trigram search for back-office 2020-01-15 20:49:33 +03:00
Kuroshini
7a7d7a70b0 fix naming issue 2020-01-15 19:15:32 +03:00
Kuroshini
fab351d800 distillery_type #3 2020-01-15 18:21:21 +03:00
Anatoly
a468f264e0 fix similarity rules 2020-01-15 17:50:34 +03:00
Kuroshini
59f7f8d2d4 distillery_type 2020-01-15 17:50:12 +03:00
Anatoly
c0273773bc refactored a little similarity rules 2020-01-15 17:00:14 +03:00
Kuroshini
129201d3a9 add slug for backoffice establishments 2020-01-15 16:51:42 +03:00
Kuroshini
0607a56739 Revert "possible fix for similar distilleries"
This reverts commit 2197863
2020-01-15 16:47:04 +03:00
Kuroshini
21978639bd possible fix for similar distilleries 2020-01-15 16:40:29 +03:00
Anatoly
8cb0f51802 fix transfer command transfer_city_gallery, add field image to City model, fix serializer CityDetailSerializer 2020-01-15 13:22:54 +03:00
alex
e4123d3ce9 preview_image to establishment and product type and subtype 2020-01-15 10:47:18 +03:00
alex
19b9e636c1 phones for cascade establishment 2020-01-15 09:20:09 +03:00
a.gorbunov
c110dc3b96 optimize collection images 2020-01-14 18:18:17 +03:00
Dmitriy Kuzmenko
9aeedff81e Merge branch 'develop' into phone_list 2020-01-14 15:59:46 +03:00
Dmitriy Kuzmenko
11b55e9f4c change chosen tag functional 2020-01-14 15:40:49 +03:00
Dmitriy Kuzmenko
387f96b8bf Merge branch 'develop' of ssh://gl.id-east.ru:222/gm/gm-backend into develop 2020-01-14 10:53:53 +03:00
Dmitriy Kuzmenko
fb00c7c3a3 add chosen tag 2020-01-14 10:53:43 +03:00
alex
35d9f37fab fix serializer 2020-01-13 15:47:50 +03:00
alex
605a3e12e1 phone_list field create and update 2020-01-13 15:44:51 +03:00
alex
d6345f27e2 establishment menu currency id 2020-01-13 11:56:04 +03:00
Anatoly
b2f3e1f96b added field - "distillery_types" in establishment list, detail and similar list view 2020-01-13 11:50:54 +03:00
alex
d1572cbb56 rm publish filter from BO establishment api 2020-01-13 11:25:22 +03:00
Anatoly
0a3fe15e9c small refactoring (/.../establishments/slug/{slug}/similar/artisans/distilleries to /.../establishments/slug/{slug}/similar/producers/distilleries) 2020-01-10 17:25:27 +03:00
Anatoly
db8917e7af added two endpoints: /.../establishments/slug/{slug}/similar/producers/food/, /.../establishments/slug/{slug}/similar/artisans/distilleries/ 2020-01-10 17:25:27 +03:00
Anatoly
23f8c0bbcd added field address_id to request data in /api/back/establishments/
in Establishment make as mandatory field address
2020-01-10 14:40:54 +03:00
Kuroshini
a925d2f623 create est with address id #2 2020-01-10 14:04:11 +03:00
Kuroshini
c22fb3fb5c create est with address id 2020-01-10 14:01:59 +03:00
Dmitriy Kuzmenko
807f8b4169 Merge branch 'develop' of ssh://gl.id-east.ru:222/gm/gm-backend into develop 2020-01-09 17:47:26 +03:00
Dmitriy Kuzmenko
5041798020 add pagination for employee 2020-01-09 17:47:09 +03:00
alex
30e25c2da0 fix EmployeeBackSerializers 2020-01-09 16:29:33 +03:00
alex
6b52feffd8 fix similar_artisans_producers 2019-12-30 16:38:42 +03:00
Anatoly
2827374911 intermediate commit 2019-12-30 13:22:57 +03:00
Dmitriy Kuzmenko
e2d71fca8f Merge branch 'develop' into feature/guides 2019-12-27 18:00:20 +03:00
Anatoly
151c017561 see changes 2019-12-27 17:49:56 +03:00
Виктор Гладких
4e82d5275a Fix 2019-12-27 16:55:01 +03:00
Виктор Гладких
ab5bb5c190 Merge branch 'develop' into feature/profile 2019-12-27 16:35:57 +03:00
Виктор Гладких
660d60e656 Lite refactor 2019-12-27 16:30:31 +03:00
Виктор Гладких
caa17bf9f4 Serialize employee with positions, public_mark and establishment 2019-12-27 16:13:22 +03:00
Anatoly
b41c185a65 see changes 2019-12-27 14:46:36 +03:00
alex
ae486d81fa city filter for establishment 2019-12-27 14:32:09 +03:00
alex
e3d7618c62 preview_image to establishment and product type and subtype 2019-12-27 09:47:48 +03:00
Dmitriy Kuzmenko
02d0112d8b add export for guides 2019-12-26 18:11:48 +03:00
Anatoly
1189b6ff58 see changes 2019-12-26 10:24:08 +03:00
Dmitriy Kuzmenko
d7c7880860 add counter for public_mark and change Guid serializer 2019-12-25 15:19:43 +03:00
Anatoly
f576825a71 Merge branch 'develop' into feature/guides
# Conflicts:
#	apps/collection/models.py
#	apps/establishment/models.py
#	apps/establishment/views/web.py
#	apps/product/views/common.py
#	requirements/base.txt
2019-12-23 13:11:05 +03:00
Anatoly
2fb338bc59 refactored method to get similar list on entities (see todo: establishment/models.py) 2019-12-23 12:59:47 +03:00
Anatoly
7452f0bef0 intermediate commit 2019-12-23 12:38:13 +03:00
Anatoly
cc7125b468 added image url to es 2019-12-23 09:19:16 +03:00
Kuroshini
660c8e791b tags translation 2019-12-20 19:08:53 +03:00
Anatoly
72e5d723db added default image for type/subtype 2019-12-20 17:27:04 +03:00
Anatoly
35b7846ca1 refactored methods for getting similar establishments 2019-12-20 12:57:48 +03:00
Anatoly
821526d631 remove incorrect check for establishment, set schedule attr property as blank=True, refactored timetable model 2019-12-20 12:36:11 +03:00
alex
ffa8409032 fix establishment description 2019-12-18 12:43:18 +03:00
Anatoly
471239983e Merge branch 'develop' into feature/guides
# Conflicts:
#	apps/collection/views/back.py
#	apps/transfer/models.py
2019-12-17 14:47:26 +03:00
Anatoly
dbbb526902 Refactored mechanism to find similar objects. Added endpoints to product app. 2019-12-17 13:02:46 +03:00
Kuroshini
586f6e373b Anatoly, dont erase working code during refactoring pls 2019-12-16 15:30:05 +03:00
Dmitriy Kuzmenko
6e72c7c0e4 merge with debelop 2019-12-13 15:47:05 +03:00
Dmitriy Kuzmenko
bd6f8a47a1 add api for establishment admin 2019-12-13 11:02:37 +03:00
Anatoly
e2ec179f69 refactored the mechanism for finding similar establishments 2019-12-12 18:10:20 +03:00
alex
f565285abd back menu filter by establishment 2019-12-12 16:58:13 +03:00
Anatoly
7d40471084 intermediate commit 2019-12-10 17:44:29 +03:00
Anatoly
51da45b00b refactoring 2019-12-10 13:08:28 +03:00
Anatoly
439fb17778 Merge branch 'develop' into feature/similar-wines 2019-12-10 12:46:44 +03:00
d.kuzmenko
6a3a40be4f Merge branch 'feature/permission_winery' into 'develop'
Feature/permission winery

See merge request gm/gm-backend!173
2019-12-09 14:05:48 +00:00
Kuroshini
0f11a47a79 rest category & rest cuisine for favs
(cherry picked from commit 79a70fb)
2019-12-09 16:48:50 +03:00
Виктор Гладких
c3c5cfcac5 Merge branch 'develop' into feature/permission_winery 2019-12-09 16:36:17 +03:00
Виктор Гладких
188f8877b4 Fix test 2019-12-09 16:35:38 +03:00
Kuroshini
912431690d rename attrs #2 2019-12-09 15:21:39 +03:00
Виктор Гладких
bd567200c8 Merge branch 'develop' into feature/permission_winery 2019-12-09 09:40:33 +03:00
Anatoly
f1fa8a58de small refactoring 2019-12-06 17:37:33 +03:00
Виктор Гладких
8e63b969bf Merge branch 'develop' into feature/permission_winery 2019-12-06 16:58:44 +03:00
Виктор Гладких
e824b5ee65 winery permission 2019-12-06 16:51:57 +03:00
d.kuzmenko
29d05929ff Merge branch 'fix/backoffice-slug-url' into 'develop'
Fix/backoffice slug url

See merge request gm/gm-backend!169
2019-12-06 11:15:16 +00:00
alex
99e2b060f8 Merge remote-tracking branch 'origin/develop' into develop 2019-12-06 14:12:59 +03:00
alex
e08296c52d address to product detail web api 2019-12-06 14:12:26 +03:00
Kuroshini
91b528feb9 tags for establishments 2019-12-06 14:03:14 +03:00
Anatoly
b659308729 exclude field from Establishment serializer 2019-12-06 13:06:59 +03:00
Kuroshini
202f5715f3 remove tag category from detail 2019-12-05 17:12:43 +03:00
Anatoly
3afb51d472 fix establishment admin page 2019-12-05 14:11:54 +03:00
Kuroshini
1e0044cbd1 artisans tags for favs
(cherry picked from commit 7081e52)
2019-12-05 12:12:08 +03:00
Kuroshini
bebd1283c0 Merge remote-tracking branch 'origin/fix/hide-unused-tags' into develop
# Conflicts:
#	apps/establishment/models.py
2019-12-04 21:04:09 +03:00
dormantman
c0bc66c749 Hide unusable tags 2019-12-04 21:02:08 +03:00
Anatoly
9dc8e34e3a Merge branch 'develop' into feature/transfer-guide
# Conflicts:
#	apps/establishment/models.py
#	apps/establishment/serializers/common.py
2019-12-04 20:16:21 +03:00
Anatoly
29ff10fb4b added wine origins 2019-12-04 20:13:09 +03:00
Kuroshini
f44a4bb29d Establishments favs type 2019-12-04 19:37:05 +03:00
Kuroshini
e0ad819caa fix empty comments 2019-12-04 18:51:23 +03:00