Nope, doesn't work?!? I've tried every possible combination that I can think of. Is there a known method of inheriting/using/appropriating an existing model in a new model.py? My code works with an independent Country model, but I don't want a new Country table, I want to use the existing one... There must be a way to do this.
On Oct 16, 5:03 pm, [EMAIL PROTECTED] wrote: > On Oct 16, 2008, at 8:42 AM, nostradamnit wrote: > > > I'm trying to create a custom shipping module, and I would like to > > create a relationship between a new model (Zone) and the existing > > Satchmo model l10n.models.Country. I've tried various method of > > importing and inheriting from satchmo.l10n.models and I can't get it > > to work. It either doesn't recognize the parent object: > > > from satchmo.l10n import Country > > ImportError: cannot import name Country > > Try: > > import satchmo.l10n.models > class Country(satchmo.l10n.models.Country): > ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
