[U] fix api error when post time at the first time
This commit is contained in:
parent
10103c1ab8
commit
e1d1c85dea
@ -36,7 +36,7 @@ class OfficeHoursAPI(CreateAPIView):
|
||||
user=request.user)
|
||||
except ValueError:
|
||||
raise
|
||||
|
||||
oh.refresh_from_db()
|
||||
resp_data = {
|
||||
'begins_at': oh.get_begins_at_str,
|
||||
'ends_at': oh.get_ends_at_str,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user