Changeset - c9a76ea17fe3
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 2 years ago 2021-12-10 23:25:57
ben@sturm.com.au
assignment: Fix period ends in email.
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/assignment/forms.py
Show inline comments
...
 
@@ -65,3 +65,5 @@ class AssignmentForm(forms.ModelForm):
 

	
 
        if self.cleaned_data['period_end_type'] == 'a specific past date' and not self.cleaned_data['period_ends']:
 
            raise ValidationError('This field is required')
 

	
 
        return self.cleaned_data['period_ends']
www/conservancy/apps/assignment/views.py
Show inline comments
...
 
@@ -22,7 +22,7 @@ class AssignmentCreateView(CreateView):
 
            ['denver@sfconservancy.org', 'bsturmfels@sfconservancy.org'],
 
        )
 
        return super().form_valid(form)
 
    
 

 
    def get_success_url(self, *args, **kwargs):
 
        return reverse_lazy('assignment-thanks', kwargs={'pk': str(self.object.uuid)})
 

	
0 comments (0 inline, 0 general)