Closed Bug 1113118 Opened 10 years ago Closed 10 years ago

[traceback] AttributeError: 'Manager' object has no attribute 'invalidate'

Categories

(support.mozilla.org :: Code Quality, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED
2014Q4

People

(Reporter: willkg, Assigned: rrosario)

Details

(Whiteboard: u=dev c=gallery p=1 s=2014.22)

https://errormill.mozilla.org/support/support/group/174675/

AttributeError: 'Manager' object has no attribute 'invalidate'

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "newrelic/api/object_wrapper.py", line 237, in __call__
    self._nr_instance, args, kwargs, **self._nr_kwargs)
  File "newrelic/hooks/framework_django.py", line 475, in wrapper
    return wrapped(*args, **kwargs)
  File "kitsune/access/decorators.py", line 47, in _wrapped_view
    return view_fn(request, *args, **kwargs)
  File "django/views/decorators/http.py", line 41, in inner
    return func(request, *args, **kwargs)
  File "kitsune/gallery/views.py", line 72, in upload
    Image.objects.invalidate(invalidate[0])


Pretty sure "invalidate" is a django-cache-machine thing. Probably good enough to just remove this line. Probably worth checking the code base for other instances of "invalidate()".
Related to the experiment for bug 1113162
Assignee: nobody → rrosario
Priority: -- → P3
Whiteboard: u=dev c=gallery p=1 s=2014.22
Target Milestone: --- → 2014Q4
Pushed to prod by me, right now.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.