From e1823170b5ce2675280a37db25041b0911b6b648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 29 Feb 2012 15:26:57 +0100 Subject: [PATCH] Model for suggestions --- trans/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trans/models.py b/trans/models.py index fa7869620..ce4d7d4dc 100644 --- a/trans/models.py +++ b/trans/models.py @@ -1,5 +1,6 @@ from django.db import models from django.db.models import Q +from django.contrib.auth.models import User from django.conf import settings from lang.models import Language from django.utils.translation import ugettext_lazy, ugettext as _ @@ -413,3 +414,7 @@ class Unit(models.Model): ret.append('%s' % (link, location)) return mark_safe('\n'.join(ret)) +class Suggestion(models.Model): + checksum = models.CharField(max_length = 40, default = '', blank = True, db_index = True) + target = models.TextField(default = '', blank = True) + user = models.ForeignKey(User, null = True, blank = True)