black file
This commit is contained in:
@@ -254,7 +254,7 @@ class AttachmentUpdateView(LoginRequiredMixin, UpdateView):
|
|||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context["topic"] = Topic.objects.get(slug=self.topic_slug)
|
context["topic"] = Topic.objects.get(slug=self.topic_slug)
|
||||||
|
|
||||||
attachment = Attachment.objects.get(
|
attachment = Attachment.objects.get(
|
||||||
Q(slug=self.slug) & Q(topic__slug=self.topic_slug)
|
Q(slug=self.slug) & Q(topic__slug=self.topic_slug)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user