diff options
Diffstat (limited to 'app/gtd/forms.py')
-rw-r--r-- | app/gtd/forms.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/gtd/forms.py b/app/gtd/forms.py index 595611b..3e93a02 100644 --- a/app/gtd/forms.py +++ b/app/gtd/forms.py @@ -27,23 +27,6 @@ class GTDProjectUpdateForm(ModelForm): fields = ['title', 'body_markdown', 'date_goal', 'project_type', 'outcome', 'date_ended'] -class WiredNoteCreateForm(ModelForm): - - def __init__(self, *args, **kwargs): - user = kwargs.pop('user') - self.user = user - super(WiredNoteCreateForm, self).__init__(*args, **kwargs) - self.fields['post'].required = False - - def save(self, commit=True): - self.instance.user = self.user - return super().save(commit=commit) - - class Meta: - model = WiredNote - fields = ['title', 'url', 'body_markdown', 'post'] - - class WiredNoteEditForm(ModelForm): def __init__(self, *args, **kwargs): |