You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.py 339B

1234567891011
  1. from django.db import models
  2. from django.utils import timezone
  3. # Create your models here.
  4. class Notice(models.Model):
  5. notice_title = models.CharField(max_length=80)
  6. notice_text = models.CharField(max_length=400)
  7. pub_start = models.DateTimeField(default=timezone.now)
  8. pub_end = models.DateTimeField(default=timezone.now)