-
Hello, I am hoping someone can help me with this, as I am trying to upgrade an existing Mezz 4.3.1 (with a Cartridge shop included) to 6.0.0. In older version, we were using 'model injection' feature to add a My
When I try to
I have tried adding
Is there a way I can get this work, please? Urgent reply here would be helpful, I am under a tight deadline to finish the upgrade. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK actually I got it, and was misunderstanding the structure of the EXTRA_MODEL_FIELDS sequences. Keyword arguments like on_delete are expected in the final dictionary portion of the field, where I already had
(I also imported Just thought I'd mention it in case anyone else has similar problem. Since the answer is not really the issue with upgrade that I thought it was, I'd prefer to simply the delete the whole question, but that doesn't seem to be an option here. Sorry for any confusion. |
Beta Was this translation helpful? Give feedback.
OK actually I got it, and was misunderstanding the structure of the EXTRA_MODEL_FIELDS sequences. Keyword arguments like on_delete are expected in the final dictionary portion of the field, where I already had
"null": True
, not in the tuple before with members.Student. So the working code was like:(I also imported
django.db.models
…