Code

Ticket #13019: create_update.py.patch

File create_update.py.patch, 450 bytes (added by Beuc, 4 years ago)
  • .py

    old new  
    8888    try: 
    8989        return model.objects.get(**lookup_kwargs) 
    9090    except ObjectDoesNotExist: 
    91         raise Http404("No %s found for %s" 
     91        raise Http404(u"No %s found for %s" 
    9292                      % (model._meta.verbose_name, lookup_kwargs)) 
    9393 
    9494def create_object(request, model=None, template_name=None,