mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 07:21:56 +08:00
Add auto_now attrs to date and time model fields (#1210)
Co-Authored-By: Ben Nace <ben2701@verizon.net> Co-authored-by: Ben Nace <ben2701@verizon.net>
This commit is contained in:
@@ -456,6 +456,8 @@ class DateField(DateTimeCheckMixin, Field[_ST, _GT]):
|
|||||||
_pyi_private_set_type: Union[str, date, Combinable]
|
_pyi_private_set_type: Union[str, date, Combinable]
|
||||||
_pyi_private_get_type: date
|
_pyi_private_get_type: date
|
||||||
_pyi_lookup_exact_type: Union[str, date]
|
_pyi_lookup_exact_type: Union[str, date]
|
||||||
|
auto_now: bool
|
||||||
|
auto_now_add: bool
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
verbose_name: Optional[_StrOrPromise] = ...,
|
verbose_name: Optional[_StrOrPromise] = ...,
|
||||||
@@ -484,6 +486,8 @@ class DateField(DateTimeCheckMixin, Field[_ST, _GT]):
|
|||||||
class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
|
class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[str, time, real_datetime, Combinable]
|
_pyi_private_set_type: Union[str, time, real_datetime, Combinable]
|
||||||
_pyi_private_get_type: time
|
_pyi_private_get_type: time
|
||||||
|
auto_now: bool
|
||||||
|
auto_now_add: bool
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
verbose_name: Optional[_StrOrPromise] = ...,
|
verbose_name: Optional[_StrOrPromise] = ...,
|
||||||
|
|||||||
Reference in New Issue
Block a user