質問編集履歴
1
SearchFormのコードを追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,5 +57,24 @@
|
|
57
57
|
</form>
|
58
58
|
```
|
59
59
|
|
60
|
+
```python
|
61
|
+
# forms.py
|
62
|
+
class SearchForm(forms.Form):
|
63
|
+
search_text = forms.CharField(
|
64
|
+
label='Search',
|
65
|
+
required=True,
|
66
|
+
max_length=100,
|
67
|
+
help_text='required'
|
68
|
+
)
|
69
|
+
|
70
|
+
sorted_choice = (
|
71
|
+
('Newest', 'Newest'),
|
72
|
+
('Recent activity', 'Recent activity'),
|
73
|
+
('Most votes', 'Most votes'),
|
74
|
+
('Most frequent', 'Most frequent'),
|
75
|
+
)
|
76
|
+
|
77
|
+
```
|
78
|
+
|
60
79
|
お分かりの方、ご教示頂けますと幸いです。
|
61
80
|
よろしくお願い致します。
|