forked from gergely/calendar-social
[Code Cleanup] Update some variable names to conform with PEP8
This commit is contained in:
@@ -78,11 +78,11 @@ class EventForm(FlaskForm):
|
||||
def populate_obj(self, obj):
|
||||
FlaskForm.populate_obj(self, obj)
|
||||
|
||||
tz = self.time_zone.data
|
||||
timezone = self.time_zone.data
|
||||
|
||||
obj.time_zone = str(tz)
|
||||
obj.start_time = tz.localize(self.start_time.data).astimezone(pytz.utc)
|
||||
obj.end_time = tz.localize(self.end_time.data).astimezone(pytz.utc)
|
||||
obj.time_zone = str(timezone)
|
||||
obj.start_time = timezone.localize(self.start_time.data).astimezone(pytz.utc)
|
||||
obj.end_time = timezone.localize(self.end_time.data).astimezone(pytz.utc)
|
||||
|
||||
def validate_end_time(self, field):
|
||||
if field.data < self.start_time.data:
|
||||
|
Reference in New Issue
Block a user