Open bennik88 opened 4 years ago
It seems like the CreateOnlyDefault() doesn't exist in rest_framework_mongoengine and does not work in combination with rest_framework.
Example:
from rest_framework_mongoengine import serializers class ProjectCreation(EmbeddedDocument): project_created_by = fields.StringField(max_length=50) date_of_creation = fields.DateTimeField( default=serializers.CreateOnlyDefault(datetime.datetime.utcnow))
It seems like the CreateOnlyDefault() doesn't exist in rest_framework_mongoengine and does not work in combination with rest_framework.
Example: