Ezequiel Bertti
2018-08-24 14:09:34 UTC
Hi,
I want to suggest a feature on github, but first, I want to ask the group
about it.
Something like this:
class MySerializer(serializers.Serializer):
some_field = serializers.IntegerField()
def request(request):
serializer = MySerializer(data=request.GET)
if serializer.is_valid():
my_var = serializer.validated_data[MySerializer.some_field]
I want to suggest a feature on github, but first, I want to ask the group
about it.
Something like this:
class MySerializer(serializers.Serializer):
some_field = serializers.IntegerField()
def request(request):
serializer = MySerializer(data=request.GET)
if serializer.is_valid():
my_var = serializer.validated_data[MySerializer.some_field]
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.