add auto_now field
This commit is contained in:
parent
4efb595170
commit
cc609943ac
|
@ -1,11 +1,13 @@
|
|||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class ProductGroup(models.Model):
|
||||
url = models.URLField()
|
||||
created_by = models.ForeignKey(User)
|
||||
name = models.CharField(max_length=255)
|
||||
created_time = models.DateTimeField(default=datetime.now)
|
||||
description = models.TextField(blank=True)
|
||||
end_time = models.DateTimeField()
|
||||
is_locked = models.BooleanField(default=False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user