File diff 9158aff702ed → 2a23a0a55ea0
conservancy/usethesource/models.py
Show inline comments
...
 
@@ -3,6 +3,7 @@ import uuid
 
from django.contrib.auth.models import User
 
from django.db import models
 
from django.urls import reverse
 
from django.utils import timezone
 

	
 

	
 
def gen_message_id():
...
 
@@ -39,7 +40,7 @@ class Comment(models.Model):
 

	
 
    candidate = models.ForeignKey(Candidate, on_delete=models.CASCADE)
 
    user = models.ForeignKey(User, on_delete=models.PROTECT)
 
    time = models.DateTimeField(auto_now_add=True)
 
    time = models.DateTimeField(default=timezone.now)
 
    message = models.TextField()
 
    email_message_id = models.CharField(max_length=255, default=gen_message_id)