Fixed warnings
This commit is contained in:
parent
7d9cac404c
commit
81083bf8c8
@ -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)
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user