mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Allow to be overridden.
This commit is contained in:
parent
7ef35a6b53
commit
92ed978d33
21
bikeshop_project/core/migrations/0002_auto_20170101_2054.py
Normal file
21
bikeshop_project/core/migrations/0002_auto_20170101_2054.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.7 on 2017-01-01 20:54
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.utils.timezone
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='visit',
|
||||||
|
name='created_at',
|
||||||
|
field=models.DateTimeField(default=django.utils.timezone.now),
|
||||||
|
),
|
||||||
|
]
|
@ -67,7 +67,7 @@ class Visit(models.Model):
|
|||||||
'registration.Member',
|
'registration.Member',
|
||||||
on_delete=models.CASCADE
|
on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
created_at = models.DateTimeField(auto_now_add=True)
|
created_at = models.DateTimeField(default=timezone.now)
|
||||||
purpose = models.CharField(max_length=50, choices=visit_choices)
|
purpose = models.CharField(max_length=50, choices=visit_choices)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user