2 Commits

Author SHA1 Message Date
44b06d1c04 Minor formatting changes. 2020-09-10 00:32:56 +02:00
0c2b1a4699 voucher form length now matches voucher model length. 2020-09-10 00:25:44 +02:00
3 changed files with 7 additions and 5 deletions

View File

@@ -11,7 +11,10 @@ class ExplorerCreationForm(UserCreationForm):
class Meta:
model = Explorer
fields = ('username', 'email')
voucher = forms.CharField(max_length=10, help_text='The Voucher you got from an administrator')
voucher = forms.CharField(
max_length=30,
help_text='The Voucher you got from an administrator'
)
def is_valid(self):
super().is_valid()
@@ -49,7 +52,6 @@ class PlaceImageCreateForm(forms.ModelForm):
self.fields['filename'].required = False
class TagSubmitForm(forms.Form):
tag_list = forms.CharField(
max_length=500,

View File

@@ -26,7 +26,7 @@ urlpatterns = [
path('place/', PlaceListView.as_view(), name='place_list'),
path('flat/<slug:slug>/', FlatView, name='flatpage'),
# POST-only URL for tag submission
# POST-only URLs for tag submission
path('place/tag/<int:place_id>', PlaceTagSubmitView.as_view(), name='place_tag_submit'),
path('place/tag/delete/<int:tagged_id>/<int:tag_id>', PlaceTagDeleteView.as_view(), name='place_tag_delete')
]