Self hosted FLOSS fitness/workout, nutrition and weight tracker
Render the description of the exercise with a TextArea
Roland Geider42d740e18256
diff --git a/exercises/views.py b/exercises/views.pyindex c26936ab5..3525d24dc 100644--- a/exercises/views.py+++ b/exercises/views.py@@ -21,6 +21,7 @@ from django.http import HttpResponsefrom django.http import HttpResponseRedirectfrom django.http import Http404from django.forms import ModelForm+from django.forms import Textareafrom django.forms.models import modelformset_factoryfrom django.core.context_processors import csrffrom django.contrib.auth import authenticate, login, logout@@ -60,6 +61,10 @@ class ExerciseCommentForm(ModelForm):class ExerciseForm(ModelForm):class Meta:model = Exercise++ widgets = {+ 'description': Textarea(attrs={'cols': 80, 'rows': 10}),+ }class ExerciseCategoryForm(ModelForm):class Meta:@@ -150,7 +155,7 @@ def exercise_edit(request, id=None):template_data['edit_form'] = exercise_form- return render_to_response('edit.html', template_data)+ return render_to_response('exercise_edit.html', template_data)@permission_required('manager.delete_exercise')def exercise_delete(request, id):