Skip to content

Conversation

marcorichetta
Copy link

Django provides a way to save datetime fields on model creation. This is less error prone and also cleaner!

I think unicode is from an old version of Django. Now the convention is to use str.

Django provides a way to [save datetime fields on model creation](https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.DateField.auto_now_add). This is less error prone and also cleaner!

I think unicode is from an old version of Django. Now the convention is to use [__str__](https://docs.djangoproject.com/en/3.1/ref/models/instances/#django.db.models.Model.__str__)
@marcorichetta marcorichetta changed the base branch from master to py3 March 2, 2021 16:53
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

Successfully merging this pull request may close these issues.

1 participant