Renombrar actions.py a acciones.py en backend_admin y promociones
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
from .actions import Admin
|
from .acciones import Admin
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from rest_framework.permissions import IsAuthenticated
|
|||||||
from rest_framework_simplejwt.authentication import JWTAuthentication
|
from rest_framework_simplejwt.authentication import JWTAuthentication
|
||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
from apps.backend_admin.models import Log
|
from apps.backend_admin.models import Log
|
||||||
from .actions import getData
|
from .acciones import getData
|
||||||
from django.utils import timezone # Esta es la forma correcta
|
from django.utils import timezone # Esta es la forma correcta
|
||||||
class PromocionObtener(APIView):
|
class PromocionObtener(APIView):
|
||||||
authentication_classes = [JWTAuthentication]
|
authentication_classes = [JWTAuthentication]
|
||||||
|
|||||||
Reference in New Issue
Block a user