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> |
||
|---|---|---|
| .. | ||
| gooyal_oauth2 | ||
| promotions | ||
| users | ||
| __init__.py | ||