black file

This commit is contained in:
2022-04-19 15:20:06 +00:00
parent 89ff6789f2
commit c1b5a2c78d

View File

@@ -254,7 +254,7 @@ class AttachmentUpdateView(LoginRequiredMixin, UpdateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["topic"] = Topic.objects.get(slug=self.topic_slug)
attachment = Attachment.objects.get(
Q(slug=self.slug) & Q(topic__slug=self.topic_slug)
)