We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems like the CreateOnlyDefault() doesn't exist in rest_framework_mongoengine and does not work in combination with rest_framework.
Example:
The text was updated successfully, but these errors were encountered: