Hi all,
I'm having a frustrating problem attempting to inject a ForeignKey into a
custom app, as follows:
EXTRA_MODEL_FIELDS = (
(
'cartridge.shop.models.Product.shipping_option',
'ForeignKey',
('shipping.models.ShippingOption',),
{'blank': True},
),
)
The dotted patch to ShippingOption is correct (as verified by importing at
a django shell), yet model validation fails with the following:
ValueError: Cannot create form field for u'shipping_option' yet, because
its related model 'shipping.models.ShippingOption' has not been loaded yet
The full traceback is here: http://ur1.ca/gctb3
Can't seem to find much on this problem (although it does appear to relate
somewhat to a previous problem with recursive ForeignKey relations in
EXTRA_MODEL_FIELDS
here<https://groups.google.com/forum/#!msg/mezzanine-users/7oS6t5SGkqo/nQFW_zvM4PUJ>).
This guy seems to have a crazy "solution" to the same exception, but I've
got no clue where to attempt to add that to see if it fixes.
Any ideas? Surely someone has done this before..
Thanks
Sam
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.