1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

Add index

This commit is contained in:
xiez
2012-06-26 16:29:15 +08:00
parent 5b39f73488
commit df4ac6ab02
2 changed files with 3 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ class Notification(models.Model):
primary = models.BooleanField(default=False)
class UserNotification(models.Model):
to_user = models.EmailField(max_length=255)
msg_type = models.CharField(max_length=30)
to_user = models.EmailField(db_index=True, max_length=255)
msg_type = models.CharField(db_index=True, max_length=30)
detail = models.TextField()
class NotificationForm(ModelForm):