diff --git a/fet2020/intern/views.py b/fet2020/intern/views.py index f78cda28..20dc8116 100644 --- a/fet2020/intern/views.py +++ b/fet2020/intern/views.py @@ -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) )