Module quiz: Securing an API in Django REST framework
Nov 12, 2024 · 2 min read · In what way can you validate the price field to not be less than 5 in a serializer? Choose all that apply. By using a validate method By adding this line of code in the serializer: price = serializers.DecimalField(max_digits=6, decimal_places=2, ...
Join discussion














