File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class Election(Base):
3232 slug : Mapped [str ] = mapped_column (String (MAX_ELECTION_SLUG ), primary_key = True )
3333 name : Mapped [str ] = mapped_column (String (MAX_ELECTION_NAME ), nullable = False )
3434 type : Mapped [str ] = mapped_column (String (64 ), default = "general_election" )
35- datetime_start_nominations : Mapped [datetime ] = mapped_column (DateTime , nullable = False )
36- datetime_start_voting : Mapped [datetime ] = mapped_column (DateTime , nullable = False )
37- datetime_end_voting : Mapped [datetime ] = mapped_column (DateTime , nullable = False )
35+ datetime_start_nominations : Mapped [datetime ] = mapped_column (DateTime ( timezone = True ) , nullable = False )
36+ datetime_start_voting : Mapped [datetime ] = mapped_column (DateTime ( timezone = True ) , nullable = False )
37+ datetime_end_voting : Mapped [datetime ] = mapped_column (DateTime ( timezone = True ) , nullable = False )
3838
3939 # a comma-separated string of positions which must be elements of OfficerPosition
4040 # By giving it the type `StringList`, the database entry will automatically be marshalled to the correct form
You can’t perform that action at this time.
0 commit comments