Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
To be released
------------------
- Add support for `Python 3.12` (GH-#628)
- Change docstring to reflect the correct place `now` is coming from

5.0.0 (2024-09-01)
------------------
Expand Down
4 changes: 2 additions & 2 deletions model_utils/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AutoCreatedField(DateTimeFieldBase):
A DateTimeField that automatically populates itself at
object creation.

By default, sets editable=False, default=datetime.now.
By default, sets editable=False, default=django.utils.timezone.now.

"""

Expand All @@ -40,7 +40,7 @@ class AutoLastModifiedField(AutoCreatedField):
"""
A DateTimeField that updates itself on each save() of the model.

By default, sets editable=False and default=datetime.now.
By default, sets editable=False and default=django.utils.timezone.now.

"""
def get_default(self) -> datetime:
Expand Down