1👍
✅
TimeUUID is a class. Calling it returns an instance of that class. Django has no idea what to do with that value, as there is no clue how it could be stored as a value in the database.
In order to use it, you’d need to convert it to a string. You could do that in a lambda:
id = models.UUIDField(
primary_key=True, unique=True, default=lambda: str(TimeUUID()), editable=False)
Source:stackexchange.com