news to carousel
This commit is contained in:
parent
f884d8303f
commit
de648454c7
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user