Commit ce19fb6b authored by Okhin's avatar Okhin
Browse files

Fixing the 404 on viewing cases with an activationid

parent e5801ef6
......@@ -246,12 +246,6 @@ class ViolationView(DetailView):
pk_url_kwarg = 'id'
context_object_name = 'v'
def get_object(self):
object = super(ViolationView, self).get_object()
if object.activationid:
raise Http404
return object
class LookupView(SearchView):
searchqueryset = SearchQuerySet().exclude(old=True)
form_class = SearchViolation
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment