diff options
author | Nishanth Amuluru | 2011-01-05 22:30:45 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-05 22:30:45 +0530 |
commit | dfc9b3caf56c119d10c002c321a8fcd1d7ff8406 (patch) | |
tree | 7269db834ceff1448d3586c6d421767e64ea79cf /taskapp/forms/task.py | |
parent | 5323d98a3650222a96fdf19110280991e08b68e8 (diff) | |
download | pytask-dfc9b3caf56c119d10c002c321a8fcd1d7ff8406.tar.gz pytask-dfc9b3caf56c119d10c002c321a8fcd1d7ff8406.tar.bz2 pytask-dfc9b3caf56c119d10c002c321a8fcd1d7ff8406.zip |
Replaced the word credit with pynt
--HG--
rename : templates/task/assigncredits.html => templates/task/assignpynts.html
Diffstat (limited to 'taskapp/forms/task.py')
-rw-r--r-- | taskapp/forms/task.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/taskapp/forms/task.py b/taskapp/forms/task.py index 6719f30..f76bfd5 100644 --- a/taskapp/forms/task.py +++ b/taskapp/forms/task.py @@ -4,7 +4,7 @@ from pytask.taskapp.models import Task class TaskCreateForm(forms.ModelForm): class Meta: model = Task - fields = ['title', 'desc', 'tags_field', 'credits'] + fields = ['title', 'desc', 'tags_field', 'pynts'] #publish = forms.BooleanField(required=False) def clean_title(self): @@ -25,7 +25,7 @@ class TaskCreateForm(forms.ModelForm): class EditTaskForm(forms.ModelForm): class Meta: model = Task - fields = ['title', 'desc', 'tags_field', 'credits'] + fields = ['title', 'desc', 'tags_field', 'pynts'] def clean_desc(self): data = self.cleaned_data['desc'].strip() @@ -85,7 +85,7 @@ def AddTaskForm(task_choices, is_plain=False): task = forms.ChoiceField(choices=task_choices) return myForm() -def AssignCreditForm(choices, instance=None): +def AssignPyntForm(choices, instance=None): class myForm(forms.Form): user = forms.ChoiceField(choices=choices, required=True) |