create lead table

This commit is contained in:
2025-05-24 14:14:44 +03:00
parent 4d53b7c2c4
commit e4fcf0716d
5 changed files with 60 additions and 3 deletions

View File

@@ -264,4 +264,7 @@ class PlanChangeSerializer(serializers.Serializer):
"""
instance.account_type = validated_data['account_type']
instance.save()
return instance
return instance
class LeadSerializer(serializers.Serializer):
pass

View File

@@ -190,4 +190,12 @@ class GetMembershipData(ViewSet):
"""Получаем данные по тарифам"""
pricing_data = Pricing.objects.all().order_by('price')
serializer = PricingSerializer(pricing_data, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)
return Response(serializer.data, status=status.HTTP_200_OK)
class LeadViewSet(ViewSet):
"""Собираем лиды"""
@action(detail=False, methods=['post'])
@handle_exceptions
def send_lead(self, request, id):
pass