Restructures the admin promotions/referrals endpoints to match the admin/users folder split used by the sibling advertising service (apps/crm, apps/escrow, apps/stores there): views/admin/, serializers/admin/, and a shared urls/router.py with the two resources as GenericViewSets registered on one DefaultRouter, instead of flat _admin-suffixed modules with separate ListAPIView/RetrieveAPIView classes. Scoped to the admin slice only -- the pre-existing user-token/ application-token views, urls, and serializers keep their original _user/_application file layout and URL namespaces, since converting those too would rename routes tests.py and external callers depend on. filters.py stays a single flat file, matching how advertising's own filters.py is not split into subfolders either. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| serializers | ||
| urls | ||
| views | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| filters.py | ||
| forms.py | ||
| handlers.py | ||
| models.py | ||
| tasks.py | ||
| tests.py | ||
| urls_application.py | ||
| urls_user.py | ||
| views_application.py | ||
| views_user.py | ||