return copied from model after duplication
This commit is contained in:
parent
4da8465c85
commit
41f6b8c930
|
|
@ -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'])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user