from bandsoc.apps.common.resources import CustomModelResource
from bandsoc.apps.about.models import Slide, ExecProfile


class SlideResource(CustomModelResource):
    """
    Resource for slides in the 'about bandsoc' carousel.
    """
    class Meta(CustomModelResource.Meta):
        queryset = Slide.objects.all()
        resource_name = 'about/slide'


class ExecProfileResource(CustomModelResource):
    """
    Resource for exec member profiles.
    """
    class Meta(CustomModelResource.Meta):
        queryset = ExecProfile.objects.all()
        resource_name = 'about/exec'
