Commit Graph

190 Commits

Author SHA1 Message Date
849457a051 * SimpleRouter for non-debug environment 2024-05-30 20:59:46 +04:00
8f0096946f * Make API schema visible only for admins 2024-05-30 20:58:13 +04:00
a3be30ab4c * UserAdmin tweaks 2024-05-27 01:54:00 +04:00
ccae8c2554 * Missing migration, again
+ BonusProgramLevel in admin
2024-05-27 01:41:37 +04:00
8155d78f74 * Missing migrations 2024-05-27 01:28:54 +04:00
310c7f4ef6 * Oupsie 2024-05-27 01:03:17 +04:00
ca08955b38 * Show non-managers only their own orders
* Payment methods are editable only by admin
* Allow customers to edit some set of order fields
2024-05-26 16:24:04 +04:00
a9c7e15e02 + ChecklistListSerializer with smaller set of fields in /checklist/ 2024-05-26 16:21:44 +04:00
433f1ff180 + UserSimpleSerializer with smaller set of fields for Checklist.customer field in /checklist/ 2024-05-26 16:21:44 +04:00
72ade66fe1 * Forbidden exception when failing to cancel the order 2024-05-26 16:21:44 +04:00
bae34e02c2 + DateFromToRangeFilter with _from / _to suffixes 2024-05-26 16:17:30 +04:00
d5d16d7cc8 * Date range filters for Checklist: created_at & status_updated_at 2024-05-26 03:13:13 +04:00
cfe2f68305 + SENTRY_ENVIRONMENT in env file 2024-05-26 02:41:13 +04:00
8da934bae7 + Default bonus levels in settings 2024-05-26 02:40:47 +04:00
1761f57fde + BonusProgramLevel
* Moved Bonus models to separate app
2024-05-26 02:40:04 +04:00
4e5360553a * Reverted endpoint for PaymentMethod back to /payment 2024-05-26 02:33:47 +04:00
b31272511c * Moved GlobalSettings to core app 2024-05-25 03:21:59 +04:00
0eaa1c1b86 + User.invited_with_orders_count field 2024-05-25 03:20:08 +04:00
dab4fbd0a4 * Query optimization
* Cleanup
2024-05-24 02:22:04 +04:00
cf5ab13fc8 * Oupsie 2024-05-24 02:20:10 +04:00
37983bbee7 * SENTRY_DSN address in env 2024-05-24 02:19:27 +04:00
e5c104bc11 + BonusProgramConfig
* Moved GlobalSettings to core app
* Moved bonus program logic from User to BonusProgram class
* Worked on error handling a bit
2024-05-24 02:19:00 +04:00
55f2e0b02e + CDEK webhook for instant status updates 2024-05-24 02:08:03 +04:00
99949dc318 + Filter orders by last N symbols of poizon_tracking 2024-05-22 22:32:00 +04:00
a592a1fb94 * Updated Django 4.2.2 -> 4.2.13 2024-05-21 01:52:34 +04:00
16db83fd6d + API schema as Redoc
+ Django & DRF API exceptions in one format
2024-05-21 01:19:10 +04:00
fa5e1cd860 * Checklist.bonus_used as an absolute value 2024-05-21 01:15:55 +04:00
0c51a7c3fb * Missing LocMemCache backend 2024-05-21 01:09:27 +04:00
0a31ff47b5 * Cache GlobalSetting, again 2024-05-21 01:06:51 +04:00
e8d94878c6 * Cleanup & optimizations 2024-05-21 01:05:55 +04:00
3011d0285d * Cleanup in PaymentMethodAPI 2024-05-20 23:55:04 +04:00
d0d637051d * Cleanup 2024-05-20 23:09:49 +04:00
4a987b9646 * Renamed fields in PromocodeSerializer 2024-05-20 23:08:30 +04:00
4a821faee9 + PriceField 2024-05-20 23:08:11 +04:00
81a3e15418 - DISABLE_PERMISSIONS 2024-05-20 23:05:27 +04:00
1f4d693c81 + More bonus validation
+ Bonus transaction & order cancellation
+ Spend bonus via API
+ New status for order: DELETED
* Fixed bug with not actual bonus balance returned
* Order bonus can be added in several statuses
* Fixed TG templates a bit
2024-05-20 21:46:24 +04:00
12ca631d15 * Moved Flower keys to env-file 2024-04-28 04:36:26 +04:00
57313e3018 * Moved Flower keys to env-file 2024-04-28 04:29:25 +04:00
4b59df5555 + Flower systemd service 2024-04-28 04:26:39 +04:00
1ea70513b0 + systemd service for TG bot
* Cleanup in .env
2024-04-28 03:28:13 +04:00
cfb75bad34 * Fixed nginx config 2024-04-28 03:09:11 +04:00
540241c3b1 + TG: Show some message for already logged-in users 2024-04-28 03:08:43 +04:00
e63addfaea * Fixed duplicate port in uwsgi config 2024-04-28 01:38:48 +04:00
b820e3ee9f + load .env file via dotenv library 2024-04-28 01:06:03 +04:00
c53017564b * Included .env file to systemd service 2024-04-28 00:46:47 +04:00
903c64d451 Cleanup 2024-04-27 21:33:03 +04:00
02f8e30770 + .env file template 2024-04-27 21:31:06 +04:00
ef40e9f7e0 + Bonus system (TODO: spend bonuses)
+ Telegram bot: sign up, sign in, notifications

+ Anonymous users can't see yuan_rate_commission
* Only logged in customers can create/update orders
* Customer info migrated to separate User model
* Renamed legacy fields in serializers
* Cleanup in API classes
2024-04-27 21:29:50 +04:00
bfff884603 * Store keys in env variables
* Cleanup
2024-04-27 19:54:30 +04:00
f2b506645b * Fix in deploy configs 2024-03-19 00:55:46 +04:00