Use default rather than auto_add_now to fix problem with creating
persons with the id set - Legacy-Id: 3429
This commit is contained in:
parent
97a6e67490
commit
2682e49076
|
@ -1,12 +1,14 @@
|
|||
# Copyright The IETF Trust 2007, All Rights Reserved
|
||||
|
||||
import datetime
|
||||
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
from redesign.person.name import name_parts
|
||||
|
||||
class PersonInfo(models.Model):
|
||||
time = models.DateTimeField(auto_now_add=True) # When this Person record entered the system
|
||||
time = models.DateTimeField(default=datetime.datetime.now) # When this Person record entered the system
|
||||
name = models.CharField(max_length=255, db_index=True) # The normal unicode form of the name. This must be
|
||||
# set to the same value as the ascii-form if equal.
|
||||
ascii = models.CharField(max_length=255) # The normal ascii-form of the name.
|
||||
|
|
Loading…
Reference in a new issue