In forums.views there are a number of place we do basically this: try: obj = Cls.objects.get(x=y) except Cls.DoesNotExist: return Http404 That is just the long hand form of: from django.shortcuts import get_object_or_404 obj = get_object_or_404(Cls, x=y) For clarity and suscin...su....being concise, we should use the shortcut.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.