Пример #1
0
 def validate(self, attrs):
     instance = Subscription(**attrs)
     instance.clean()
     return attrs
Пример #2
0
    def validate(self, attrs):
        attrs = super(SubscriptionSerializer, self).validate(attrs)

        instance = Subscription(**attrs)
        instance.clean()
        return attrs
Пример #3
0
    def validate(self, attrs):
        attrs = super(SubscriptionSerializer, self).validate(attrs)

        instance = Subscription(**attrs)
        instance.clean()
        return attrs
Пример #4
0
 def validate(self, attrs):
     instance = Subscription(**attrs)
     instance.clean()
     return attrs