Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Changes needed to run the application with django 1.8

Roland Geidera23eb5baab1f
diff --git a/docs/install.rst b/docs/install.rst
index 21854332c..f92ecfc19 100644
--- a/docs/install.rst
+++ b/docs/install.rst
@@ -11,7 +11,7 @@ developemt setup refer to :doc:`development`
The application is compatible and regularly tested with
* sqlite, postgres
-* python 2.7, 3.3 and 3.4
+* python 2.7, 3.3, 3.4 and 3.5
See the :ref:`other-changes` section for content related changes to your
installation.
diff --git a/requirements.txt b/requirements.txt
index 313c68a7e..d8996e7c3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,7 +3,7 @@
#
Django>=1.8,<1.9
-django-browserid==0.11
+django-browserid==1.0
django-recaptcha
reportlab
django_mobile
diff --git a/wger/exercises/views/comments.py b/wger/exercises/views/comments.py
index 486ca7229..efab09b21 100644
--- a/wger/exercises/views/comments.py
+++ b/wger/exercises/views/comments.py
@@ -46,7 +46,6 @@ class ExerciseCommentEditView(WgerFormMixin, UpdateView, WgerPermissionMixin):
'''
model = ExerciseComment
- fields = ['comment']
form_class = CommentForm
title = ugettext_lazy('Edit')
permission_required = 'exercises.change_exercisecomment'
@@ -69,7 +68,7 @@ class ExerciseCommentAddView(WgerFormMixin, CreateView, WgerPermissionMixin):
'''
model = ExerciseComment
- fields = ['comment']
+ form_class = CommentForm
title = ugettext_lazy('Add exercise comment')
permission_required = 'exercises.add_exercisecomment'