Ticket #531: debug.patch

File debug.patch, 582 bytes (added by Andreas, 19 years ago)
  • core/meta/__init__.py

     
    229229    def copy(self, **kwargs):
    230230        args = self._orig_init_args.copy()
    231231        args.update(kwargs)
     232        nonargs=['is_auto','__builtins__','field','self','f']
     233        for nonarg in nonargs:
     234            try:
     235                args.pop(nonarg)
     236            except KeyError:
     237                pass
    232238        return self.__class__(**args)
    233239
    234240    def get_model_module(self):
Back to Top