Autofield (#574)

* Adds autofield default

* linting

* Updates packages
This commit is contained in:
Ilan Steemers
2021-06-10 15:42:21 +02:00
committed by GitHub
parent 410327bff4
commit 4df036dc9c
4 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -745,7 +745,7 @@ def rss_check():
def localtime() -> datetime:
"""" Override for timezone.localtime to deal with naive times and local times"""
""" Override for timezone.localtime to deal with naive times and local times"""
if settings.USE_TZ:
return timezone.localtime()
return datetime.now()