+ 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
6 lines
137 B
Python
6 lines
137 B
Python
from rest_framework import exceptions, status
|
|
|
|
|
|
class AuthError(exceptions.APIException):
|
|
status_code = status.HTTP_401_UNAUTHORIZED
|