Всем привет. Делал кто интеграцию оплаты с yoomoney? Не понимаю, как получить уведомление о том, что оплата произведена успешно? Либо, если есть лучше альтернативы, напишите пожалуйста
Hi! I have some difficulties in implementation of validate() method for ModelSerializer. So, there are some rules that check if data that is gonna be saved to db is valid. The problem is that in case of update this should be checking against merged instance and validated_data and for create I should perform checks for validated_data only
Using 2 different serializers feels not DRY to me. Checking for self.instance and validated_data.get("field_name") is also kinda ugly, especially when it is partial_update