We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f077bd commit baf4f1dCopy full SHA for baf4f1d
1 file changed
backend/conduit/articles/models.py
@@ -162,13 +162,17 @@ def remove_tag(self, tag):
162
163
def add_organization(self, articles):
164
self.needsReview = False
165
- self.org_articles.append(articles)
166
- return True
+ if articles not in self.org_articles:
+ self.org_articles.append(articles)
167
+ return True
168
+ return False
169
170
def remove_organization(self, articles):
171
- self.org_articles.remove(articles)
172
+ if articles in self.org_articles:
173
+ self.org_articles.remove(articles)
174
175
176
177
def add_needReviewTag(self, tag):
178
self.needReviewTags.append(tag)
0 commit comments