kopia lustrzana https://gitlab.com/jaywink/federation
Fix entity CreatedAtMixin.created_at to be datetime.now()
rodzic
38c32af798
commit
15fc76b845
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from datetime import datetime
|
||||
from dirty_validators.basic import Email
|
||||
|
||||
|
@ -50,7 +51,7 @@ class PublicMixin(BaseEntity):
|
|||
|
||||
|
||||
class CreatedAtMixin(BaseEntity):
|
||||
created_at = datetime.today()
|
||||
created_at = datetime.now()
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreatedAtMixin, self).__init__(*args, **kwargs)
|
||||
|
|
Ładowanie…
Reference in New Issue