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

RESOLVED FIXED in 2014Q4

Status

P3
normal
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: willkg, Assigned: rrosario)

Tracking

unspecified
2014Q4

Firefox Tracking Flags

(Not tracked)

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()".
(Assignee)

Comment 1

4 years ago
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
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.