Ticket #6970: 6970.patch
File 6970.patch, 577 bytes (added by , 16 years ago) |
---|
-
django/db/models/query.py
316 316 obj.save() 317 317 return obj, True 318 318 except IntegrityError, e: 319 return self.get(**kwargs), False 319 try: 320 return self.get(**kwargs), False 321 except self.model.DoesNotExist, e2: 322 raise e 320 323 321 324 def latest(self, field_name=None): 322 325 """