return copied from model after duplication

This commit is contained in:
Kuroshini 2019-12-17 18:11:32 +03:00
parent 4da8465c85
commit 41f6b8c930

View File

@ -380,5 +380,5 @@ class NewsCloneCreateSerializer(NewsBackOfficeBaseSerializer,
new_country = get_object_or_404(location_models.Country, code=kwargs['country_code'])
view_count_model = rating_models.ViewCount.objects.create(count=0)
instance.create_duplicate(new_country, view_count_model)
return instance
return get_object_or_404(models.News, pk=kwargs['pk'])