role_id and topic relations fixes
This commit is contained in:
9
migration/utils.py
Normal file
9
migration/utils.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from datetime import datetime
|
||||
from json import JSONEncoder
|
||||
|
||||
class DateTimeEncoder(JSONEncoder):
|
||||
def default(self, z):
|
||||
if isinstance(z, datetime):
|
||||
return (str(z))
|
||||
else:
|
||||
return super().default(z)
|
Reference in New Issue
Block a user