[snowy] [Note model] Remove uniqueness constraint on title (#595626)



commit f68cf5225476a4ced2897b7e1dcc1497dbba1d61
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon Sep 21 07:39:56 2009 -0700

    [Note model] Remove uniqueness constraint on title (#595626)
    
    TextFields cannot be unique in MySQL.

 notes/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/notes/models.py b/notes/models.py
index 16984ec..a04f9d1 100644
--- a/notes/models.py
+++ b/notes/models.py
@@ -56,7 +56,7 @@ class Note(models.Model):
 
     class Meta:
         get_latest_by = 'user_modified'
-        unique_together = (('author', 'title'), ('author', 'guid'), )
+        unique_together = (('author', 'guid'), )
 
     def __unicode__(self):
         return self.title



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]