Skip to content

Commit c2d64bd

Browse files
committed
deleted useless variables x2
1 parent 321242c commit c2d64bd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

feed/services.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ def delete_news_for_model(instance: SIGNALS_MODELS):
1313

1414
def create_news_for_model(instance: SIGNALS_MODELS):
1515
content_type = ContentType.objects.get_for_model(instance)
16-
news_instance, created = News.objects.get_or_create(
17-
content_type=content_type, object_id=instance.id
18-
)
16+
News.objects.get_or_create(content_type=content_type, object_id=instance.id)

0 commit comments

Comments
 (0)