<filename>lastweekend_photos/apps/photo_gallery/rest_api/filters.py<gh_stars>0
import django_filters
from django_filters import rest_framework as filters

# from apps.photo_gallery.models import Event
#
#
# class EventFilter(filters.FilterSet):
#     start_date_min = django_filters.DateFilter(field_name='start_date', lookup_expr='gte', required=False)
#     start_date_max = django_filters.DateFilter(field_name='start_date', lookup_expr='lte', required=False)
#     end_date_min = django_filters.DateFilter(field_name='end_date', lookup_expr='gte', required=False)
#     end_date_max = django_filters.DateFilter(field_name='end_date', lookup_expr='lte', required=False)
#
#     class Meta:
#         model = Event
#         exclude = ('event_flyer', 'image')

<filename>lastweekend_photos/apps/photo_gallery/rest_api/filters.py<gh_stars>0
import django_filters
from django_filters import rest_framework as filters

# from apps.photo_gallery.models import Event
#
#
# class EventFilter(filters.FilterSet):
#     start_date_min = django_filters.DateFilter(field_name='start_date', lookup_expr='gte', required=False)
#     start_date_max = django_filters.DateFilter(field_name='start_date', lookup_expr='lte', required=False)
#     end_date_min = django_filters.DateFilter(field_name='end_date', lookup_expr='gte', required=False)
#     end_date_max = django_filters.DateFilter(field_name='end_date', lookup_expr='lte', required=False)
#
#     class Meta:
#         model = Event
#         exclude = ('event_flyer', 'image')

# from apps.photo_gallery.models import Event # # # class EventFilter(filters.FilterSet): #     start_date_min = django_filters.DateFilter(field_name='start_date', lookup_expr='gte', required=False) #     start_date_max = django_filters.DateFilter(field_name='start_date', lookup_expr='lte', required=False) #     end_date_min = django_filters.DateFilter(field_name='end_date', lookup_expr='gte', required=False) #     end_date_max = django_filters.DateFilter(field_name='end_date', lookup_expr='lte', required=False) # #     class Meta: #         model = Event #         exclude = ('event_flyer', 'image')