On Oct 20, 2008, at 10:59 AM, nostradamnit wrote:

> Ok, I'm making progress on this module, but I've run into a new
> problem.
>
> In the admin, when I try to add a Zone, I get the following error.
> <class 'satchmo.l10n.models.Country'> has no ForeignKey to <class
> 'shipping.zone_shipping.models.Zone'>

I think in your admin.py, instead of this...

     class Country_Inline(admin.TabularInline):
         model = Country
         extra = 1

     class ZoneOptions(admin.ModelAdmin):
         ordering = ('name',)
         inlines = [Country_Inline,]

... you just want this:

     class ZoneOptions(admin.ModelAdmin):
         ordering = ('name',)
         filter_horizontal = ('country',)

John

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