from django.db import models from django.utils import timezone # Create your models here. class Notice(models.Model): notice_title = models.CharField(max_length=80) notice_text = models.CharField(max_length=400) pub_start = models.DateTimeField(default=timezone.now) pub_end = models.DateTimeField(default=timezone.now)