This was more than 5 years ago… wow! Sorry, I have absolutely no idea now. I would suspect that "yes," I got it sorted, but I would anticipate that the internals of Django's ORM have changed significantly since then, so even if I could remember how I did it, it wouldn't be of much use…
Perhaps if you post with more detail of the exact issue *you* are experiencing someone can help you out. On 6 August 2013 04:20, <joe.yua...@gmail.com> wrote: > Hey! > I'm dealing with a similar issue. > Would you be able to tell me if you managed to solve this issue? > and if so, how? > > Thanks! > Joe > > On Tuesday, December 11, 2007 3:42:54 PM UTC-5, oli...@obeattie.com wrote: >> >> Hey everyone, >> >> I've asked a little in the Django IRC, but nobody seems to be able to >> help. I'm trying to implement a custom model field, and I really can't >> figure out why I keep getting errors. My code for my fields module is >> at http://dpaste.com/hold/27712/ >> >> When I try to run syncdb on a model which uses the PickledObjectField >> (see my sample model at http://dpaste.com/hold/27713/)**, I get this >> traceback:- >> >> Macintosh:sandbox Oliver$ cd /Django/sandbox && python manage.py >> syncdb >> Traceback (most recent call last): >> File "manage.py", line 11, in <module> >> execute_manager(settings) >> File "/Django Source/django/core/management/**__init__.py", line 272, >> in execute_manager >> utility.execute() >> File "/Django Source/django/core/management/**__init__.py", line 219, >> in execute >> self.fetch_command(subcommand)**.run_from_argv(self.argv) >> File "/Django Source/django/core/management/**base.py", line 70, in >> run_from_argv >> self.execute(*args, **options.__dict__) >> File "/Django Source/django/core/management/**base.py", line 83, in >> execute >> self.validate() >> File "/Django Source/django/core/management/**base.py", line 110, in >> validate >> num_errors = get_validation_errors(s, app) >> File "/Django Source/django/core/management/**validation.py", line 28, >> in get_validation_errors >> for (app_name, error) in get_app_errors().items(): >> File "/Django Source/django/db/models/**loading.py", line 126, in >> get_app_errors >> self._populate() >> File "/Django Source/django/db/models/**loading.py", line 55, in >> _populate >> self.load_app(app_name, True) >> File "/Django Source/django/db/models/**loading.py", line 70, in >> load_app >> mod = __import__(app_name, {}, {}, ['models']) >> File "/Django/sandbox/../sandbox/**geo/models.py", line 247, in >> <module> >> class TestModel(models.Model): >> File "/Django Source/django/db/models/base.**py", line 62, in __new__ >> new_class.add_to_class(obj_**name, obj) >> File "/Django Source/django/db/models/base.**py", line 184, in >> add_to_class >> value.contribute_to_class(cls, name) >> TypeError: Error when calling the metaclass bases >> unbound method contribute_to_class() must be called with >> PickledObjectField instance as first argument (got ModelBase instance >> instead) >> Macintosh:sandbox Oliver$ >> >> Can anyone point me in the right direction? >> >> Thanks so much, >> Oliver > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.