Skip to content

Commit

Permalink
Fix strange 'weakly-referenced object no longer exist' mongoengine error
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Aug 4, 2022
1 parent 97a655d commit abc5262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libstat/views/reports.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import copy

from pprint import pprint
from bibstat import settings
from django.urls import reverse
Expand Down Expand Up @@ -34,7 +36,7 @@ def report(request):
)
)

context = get_report(surveys, sample_year)
context = copy.deepcopy(get_report(surveys, sample_year))
context["previous_url"] = previous_url

if len(sigels) == number_of_sigel_choices:
Expand Down

0 comments on commit abc5262

Please sign in to comment.