Hi Avery, you should be able to do this:

class SlideBase(models.Model):
     # eg
image = FileField(verbose_name=_("Image"),
                      upload_to=upload_to("theme.Slide.image", "slider"),
                      format="Image", max_length=255, null=True, blank=True)
Class Meta:
   abstract = True


Then:

class Slider(Orderable, BaseSlider):
    pass

The key here is making BaseSlider abstract have a look at the docs if you
want to dive in more,
https://docs.djangoproject.com/en/1.7/topics/db/models/#abstract-base-classes

On Mon, Jan 26, 2015 at 10:33 PM, Avery Laird <[email protected]> wrote:

> class Slider(Orderable):
>      # eg
>
> image = FileField(verbose_name=_("Image"),
>                       upload_to=upload_to("theme.Slide.image", "slider"),
>                       format="Image", max_length=255, null=True, blank=
> True)
> Class Meta:
>    # whatever
>
>

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