mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-03 03:04:41 +00:00
Custom now() invocation got overlooked by PR #113
This commit is contained in:
parent
bfeb533754
commit
5007afaae2
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import notifications.models
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
@ -15,6 +15,6 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterField(
|
||||
model_name='notification',
|
||||
name='timestamp',
|
||||
field=models.DateTimeField(default=notifications.models.now),
|
||||
field=models.DateTimeField(default=timezone.now),
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue