Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

from django import forms 

 

from common.choices import SORT_CHOICES, GENRES_CHOICES, LENGTH_CHOICES, \ 

STATUS_CHOICES, RATING_CHOICES 

 

 

class FilterFanficsByFandom(forms.Form): 

sort_by = forms.ChoiceField(choices=SORT_CHOICES, initial=0, 

required=False) 

genre = forms.ChoiceField(choices=GENRES_CHOICES, initial=0, 

required=False) 

language = forms.CharField(required=False) 

length = forms.ChoiceField(choices=LENGTH_CHOICES, initial=0, 

required=False) 

status = forms.ChoiceField(choices=STATUS_CHOICES, initial=0, 

required=False) 

rating = forms.ChoiceField(choices=RATING_CHOICES, initial=0, 

required=False) 

 

character_a = forms.IntegerField(required=False) 

character_b = forms.IntegerField(required=False)