Revert "Minor python cleanup"

This reverts commit 6a4620a2e5.
This commit is contained in:
2021-01-28 18:54:50 +00:00
parent 4b8639faf4
commit a3970cf553
5 changed files with 67 additions and 77 deletions

View File

@@ -196,8 +196,7 @@ class EventChecklistForm(forms.ModelForm):
}
# Two possible formats
@staticmethod
def parsedatetime(date_string):
def parsedatetime(self, date_string):
try:
return timezone.make_aware(datetime.strptime(date_string, '%Y-%m-%dT%H:%M:%S'))
except ValueError: