Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#13392 closed (invalid)

Bug introduced with #12977 : can't copy fields with metaclass

Reported by: Stephane "Twidi" Angel Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm using django-transmeta to create fields for many langs

Say i have a field "description" and with the metaclass provided by django-transmeta, this field is transformed in description_fr + description_en and so on.

But with commit #12977, it doesn't work anymore, as the work is done by copying field (in the __new__ method of the Transmeta metaclass), and at this stage, fields have not models and then __setstate__ (in db/models/fields/__init__.py) fails (because of self.model)

No idea how to make a clean copy of the field without copy.copy...

Change History (4)

comment:1 by Gabriel Hurley, 15 years ago

Resolution: invalid
Status: newclosed

This should have been solved in [13005]. Update your copy of trunk and re-open if it's still broken.

comment:2 by Russell Keith-Magee, 15 years ago

I'm fairly certain this problem *won't* be fixed by #13005. However, I'll keep this closed in favor of the original ticket (#13328), which was the original problem that [12977] was trying to fix.

comment:3 by Gabriel Hurley, 15 years ago

Ah, my apologies. I missed #13328 being reopened. I thought it had stayed fixed despite the other tickets being opened thereafter. Well, either way, [13013] will hopefully take care of it.

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top