Esempio 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"]
Esempio 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 = []
Esempio 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"]
Esempio 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 = []
Esempio 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 = []
Esempio 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 = []
Esempio 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"]
Esempio 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"]
Esempio 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"]
Esempio 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 = []
Esempio 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"]
Esempio 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"]
Esempio 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"]
Esempio 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 = []
Esempio 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 = []
Esempio 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"]
Esempio 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 = []
Esempio n. 18
0
class CityDictFilter(filters.FilterSet):
    add_time = DateFromToRangeFilter(field_name="add_time")

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

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

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

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

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

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

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

    class Meta:
        model = TyAdminSysLog
        exclude = []