Ticket #5505: db-models-fields-init.patch
File db-models-fields-init.patch, 658 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/__init__.py
1 import copy 1 2 import datetime 2 3 import os 3 4 import time … … 398 399 "Returns the value of this field in the given model instance." 399 400 return getattr(obj, self.attname) 400 401 402 def __deepcopy__(self,memo): 403 result = copy.copy(self) 404 memo[id(self)] = result 405 return result 406 401 407 class AutoField(Field): 402 408 empty_strings_allowed = False 403 409 def __init__(self, *args, **kwargs):