Fixed warnings

This commit is contained in:
Zak Timson 2017-09-14 11:52:49 -04:00
parent 7d9cac404c
commit 81083bf8c8
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class AreaOfExpertise(models.Model):
class Expert(models.Model): class Expert(models.Model):
cases = models.ManyToManyField(Case, null=True, blank=True) cases = models.ManyToManyField(Case)
expertise = models.ManyToManyField(AreaOfExpertise) expertise = models.ManyToManyField(AreaOfExpertise)
institute = models.CharField(max_length=255, null=True, blank=True) institute = models.CharField(max_length=255, null=True, blank=True)
name = models.CharField(max_length=255) name = models.CharField(max_length=255)

View File

@ -1,13 +1,13 @@
from django.db import models from django.db import models
from django.contrib.auth.admin import User from django.contrib.auth.admin import User
from django.utils.timezone import now from django.utils import timezone
class Newsletter(models.Model): class Newsletter(models.Model):
body = models.TextField() body = models.TextField()
created = models.DateTimeField(auto_now_add=True) created = models.DateTimeField(auto_now_add=True)
creator = models.ForeignKey(User) creator = models.ForeignKey(User)
publish = models.DateTimeField(default=now()) publish = models.DateTimeField(default=timezone.now)
sent = models.BooleanField(default=False) sent = models.BooleanField(default=False)
subject = models.CharField(max_length=255) subject = models.CharField(max_length=255)