Skip to content
New issue

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

Field being sent unnecessarily #217

Open
Sandro-Meireles opened this issue Feb 10, 2023 · 0 comments
Open

Field being sent unnecessarily #217

Sandro-Meireles opened this issue Feb 10, 2023 · 0 comments

Comments

@Sandro-Meireles
Copy link
Collaborator

The field created_on is being sent unnecessarily

In TemplateMessage model, the field created_on is it is as follows:

created_on = models.DateTimeField("Created on", editable=False, default=timezone.now)

Note that it itself declares a default value according to the time it was created, so it is unnecessary to send it in objects.create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant