diff --git a/blossom/api/models.py b/blossom/api/models.py index 00761ab..e87ee7e 100644 --- a/blossom/api/models.py +++ b/blossom/api/models.py @@ -258,11 +258,11 @@ def save(self, *args: Any, skip_extras: bool = False, **kwargs: Any) -> None: If `skip_extras` is set, then it should bypass everything that is not simply "save the object to the db". """ - super(Submission, self).save(*args, **kwargs) - if not self.feed: self.feed = self.get_subreddit_name() + super(Submission, self).save(*args, **kwargs) + if not skip_extras: if self.is_image and not self.has_ocr_transcription and not self.cannot_ocr: # TODO: This is a great candidate for a basic queue system diff --git a/blossom/api/views/submission.py b/blossom/api/views/submission.py index e67002d..60d0428 100644 --- a/blossom/api/views/submission.py +++ b/blossom/api/views/submission.py @@ -148,7 +148,7 @@ class SubmissionViewSet(viewsets.ModelViewSet): "content_url": ["exact", "isnull"], "redis_id": ["exact", "isnull"], "removed_from_queue": ["exact"], - "feed": ["exact"], + "feed": ["exact", "isnull", "iexact"], } ordering_fields = [ "id",