summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arduino_blog/forms.py3
-rw-r--r--arduino_blog/urls.py16
2 files changed, 10 insertions, 9 deletions
diff --git a/arduino_blog/forms.py b/arduino_blog/forms.py
index b4e23ae..e12f36e 100644
--- a/arduino_blog/forms.py
+++ b/arduino_blog/forms.py
@@ -247,7 +247,8 @@ class AbstractProposalForm(forms.ModelForm):
error_messages={
'required': 'Abstract field required.'},
)
- references = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'References(if any)'})
+ references = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'References(if any)'}),
+ required = False
)
completion_date = forms.DateTimeField(
input_formats=['%YY-%mm-%dd'],
diff --git a/arduino_blog/urls.py b/arduino_blog/urls.py
index 0b06838..9a4a81f 100644
--- a/arduino_blog/urls.py
+++ b/arduino_blog/urls.py
@@ -8,15 +8,15 @@ from . import views
app_name = 'arduino_blog'
urlpatterns = [
re_path(r'^comment-abstract/(?P<proposal_id>\d+)$',
- views.comment_abstract, name='comment_abstract'),
- re_path(r'^abstract-details/(?P<proposal_id>\d+)$',
- views.abstract_details, name='abstract_details'),
- url(r'^view-abstracts/$', views.view_abstracts, name="view_abstracts"),
- url(r'^accounts/logout/$', views.user_logout, name="user_logout"),
- url(r'^activate/(?P<key>.+)$', views.activate_user, name="activate"),
+ views.comment_abstract, name='comment_abstract'),
+ re_path(r'^abstract-details/(?P<proposal_id>\d+)$',
+ views.abstract_details, name='abstract_details'),
+ url(r'^view-abstracts/$', views.view_abstracts, name="view_abstracts"),
+ url(r'^accounts/logout/$', views.user_logout, name="user_logout"),
+ url(r'^activate/(?P<key>.+)$', views.activate_user, name="activate"),
url(r'^new_activation/$', views.new_activation, name='new_activation'),
- url(r'^submit-abstract/$', views.submitabstract, name='submitabstract'),
+ url(r'^submit-abstract/$', views.submitabstract, name='submitabstract'),
url(r'^accounts/register/$', views.user_register, name='user_register'),
url(r'^accounts/login/$', views.user_login, name='user_login'),
- url(r'^$', views.index, name='index'),
+ url(r'^$', views.index, name='index'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)