news to carousel

This commit is contained in:
Kuroshini 2019-12-19 17:30:02 +03:00
parent f884d8303f
commit de648454c7

View File

@ -359,6 +359,9 @@ class NewsCarouselCreateSerializer(CarouselCreateSerializer):
return attrs
def create(self, validated_data, *args, **kwargs):
validated_data.update({
'country': validated_data['news'].country
})
validated_data.update({
'content_object': validated_data.pop('news'),
'is_parse': True,