Ejemplo n.º 1
0
class UserProfileFilter(filters.FilterSet):
    last_login = DateFromToRangeFilter(field_name="last_login")
    date_joined = DateFromToRangeFilter(field_name="date_joined")

    class Meta:
        model = UserProfile
        exclude = ["image", "image"]
Ejemplo n.º 2
0
class OrderInfoFilter(filters.FilterSet):
    user_text = filters.CharFilter(field_name="user")
    pay_time = DateFromToRangeFilter(field_name="pay_time")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = OrderInfo
        exclude = []
Ejemplo n.º 3
0
class CourseOrgFilter(filters.FilterSet):
    city_text = filters.CharFilter(field_name="city")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = CourseOrg
        exclude = ["image", "image"]
Ejemplo n.º 4
0
class UserFavoriteFilter(filters.FilterSet):
    user_text = filters.CharFilter(field_name="user")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = UserFavorite
        exclude = []
Ejemplo n.º 5
0
class LessonFilter(filters.FilterSet):
    course_text = filters.CharFilter(field_name="course")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Lesson
        exclude = []
Ejemplo n.º 6
0
class VideoFilter(filters.FilterSet):
    lesson_text = filters.CharFilter(field_name="lesson")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Video
        exclude = []
Ejemplo n.º 7
0
class GoodsFilter(filters.FilterSet):
    category_text = filters.CharFilter(field_name="category")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Goods
        exclude = ["goods_front_image", "goods_front_image"]
Ejemplo n.º 8
0
class BannerFilter(filters.FilterSet):
    goods_text = filters.CharFilter(field_name="goods")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Banner
        exclude = ["image", "image"]
Ejemplo n.º 9
0
class GoodsCategoryBrandFilter(filters.FilterSet):
    category_text = filters.CharFilter(field_name="category")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = GoodsCategoryBrand
        exclude = ["image", "image"]
Ejemplo n.º 10
0
class GoodsCategoryFilter(filters.FilterSet):
    parent_category_text = filters.CharFilter(field_name="parent_category")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = GoodsCategory
        exclude = []
Ejemplo n.º 11
0
class CourseResourceFilter(filters.FilterSet):
    course_text = filters.CharFilter(field_name="course")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = CourseResource
        exclude = ["download"]
Ejemplo n.º 12
0
class TeacherFilter(filters.FilterSet):
    org_text = filters.CharFilter(field_name="org")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Teacher
        exclude = ["image", "image"]
Ejemplo n.º 13
0
class UserLeavingMessageFilter(filters.FilterSet):
    user_text = filters.CharFilter(field_name="user")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = UserLeavingMessage
        exclude = ["file"]
Ejemplo n.º 14
0
class ShoppingCartFilter(filters.FilterSet):
    user_text = filters.CharFilter(field_name="user")
    goods_text = filters.CharFilter(field_name="goods")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = ShoppingCart
        exclude = []
Ejemplo n.º 15
0
class OrderGoodsFilter(filters.FilterSet):
    order_text = filters.CharFilter(field_name="order")
    goods_text = filters.CharFilter(field_name="goods")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = OrderGoods
        exclude = []
Ejemplo n.º 16
0
class CourseFilter(filters.FilterSet):
    course_org_text = filters.CharFilter(field_name="course_org")
    teacher_text = filters.CharFilter(field_name="teacher")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Course
        exclude = ["image", "image"]
Ejemplo n.º 17
0
class CourseCommentsFilter(filters.FilterSet):
    course_text = filters.CharFilter(field_name="course")
    user_text = filters.CharFilter(field_name="user")
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = CourseComments
        exclude = []
Ejemplo n.º 18
0
class CityDictFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = CityDict
        exclude = []
Ejemplo n.º 19
0
class VerifyCodeFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = VerifyCode
        exclude = []
Ejemplo n.º 20
0
class HotSearchWordsFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = HotSearchWords
        exclude = []
Ejemplo n.º 21
0
class VersionControlFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = VersionControl
        exclude = ["file"]
Ejemplo n.º 22
0
class BannerFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = Banner
        exclude = ["image", "image"]
Ejemplo n.º 23
0
class EmailVerifyRecordFilter(filters.FilterSet):
    send_time = DateFromToRangeFilter(field_name="send_time")

    class Meta:
        model = EmailVerifyRecord
        exclude = []
Ejemplo n.º 24
0
class UserMessageFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

    class Meta:
        model = UserMessage
        exclude = []
Ejemplo n.º 25
0
class TyAdminSysLogFilter(filters.FilterSet):
    action_time = DateFromToRangeFilter(field_name="action_time")

    class Meta:
        model = TyAdminSysLog
        exclude = []