Commit 2a835d42 authored by fred's avatar fred

store subscription date as datetime

parent 99ab1a44
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-01-31 19:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0005_auto_20210131_1721'),
]
operations = [
migrations.AlterField(
model_name='subscriber',
name='inscription_date',
field=models.DateTimeField(auto_now_add=True),
),
]
......@@ -27,7 +27,7 @@ from ckeditor.fields import RichTextField
class Subscriber(models.Model):
email = models.EmailField(unique=False)
inscription_date = models.DateField(auto_now_add=True)
inscription_date = models.DateTimeField(auto_now_add=True)
is_validated = models.NullBooleanField()
is_registered = models.NullBooleanField()
password = models.CharField(max_length=100)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment