Ticket #13019: create_update.py.patch
File create_update.py.patch, 450 bytes (added by , 15 years ago) |
---|
-
.py
old new 88 88 try: 89 89 return model.objects.get(**lookup_kwargs) 90 90 except ObjectDoesNotExist: 91 raise Http404( "No %s found for %s"91 raise Http404(u"No %s found for %s" 92 92 % (model._meta.verbose_name, lookup_kwargs)) 93 93 94 94 def create_object(request, model=None, template_name=None,