Skip to content
Snippets Groups Projects
Commit 6abf5146 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

date_added is modifed only on add

parent a0818a46
No related branches found
No related tags found
1 merge request!145date added is not valid
Pipeline #
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-06-11 13:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0115_auto_20180611_0950'),
]
operations = [
migrations.AlterField(
model_name='studysubject',
name='date_added',
field=models.DateField(auto_now_add=True, verbose_name=b'Added on'),
),
]
......@@ -84,7 +84,7 @@ class StudySubject(models.Model):
verbose_name='Comments'
)
date_added = models.DateField(verbose_name='Added on',
auto_now=True
auto_now_add=True
)
referral = models.CharField(max_length=128,
null=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment