Ticket #9209: db_model_fields.patch
File db_model_fields.patch, 471 bytes (added by , 16 years ago) |
---|
-
db/models/fields/__init__.py
350 350 def get_db_prep_value(self, value): 351 351 if value is None: 352 352 return None 353 try: 354 int(value) 355 except: 356 return None 353 357 return int(value) 354 358 355 359 def contribute_to_class(self, cls, name):