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
-~----------~----~----~----~------~----~------~--~---

Reply via email to