I have a class 'Happening' with a ManyToMany relationship to  'Span' as 
follows

class Happening(Page, RichText):
    spans = models.ManyToManyField(Span)

class Span(Slugged):
    start_date = models.DateField()
    end_date = models.DateField()
    start_time = models.TimeField
    end_time = models.TimeField

In the admin for Happening I want the Span fields to appear (I believe the 
term is 'inline')

I did this in admin.py
class HappeningSpanInline(DynamicInlineAdminForm):
    model = Happening.spans.through

class HappeningAdmin(PageAdmin):
    """
    Admin class for Happenings.
    """
    inlines = [HappeningSpanInline,]
    fieldsets = happening_fieldsets

However when I try to run the server I get this message

django.core.exceptions.ImproperlyConfigured: 'HappeningAdmin.inlines[0]' 
does not inherit from BaseModelAdmin.

Some help would be appreciated.
Regards g


-- 
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/d/optout.

Reply via email to