Commit f004436b authored by Michal Čihař's avatar Michal Čihař

Avoid explicit import

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 61b1a7f8
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
from django.db import models from django.db import models
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from weblate.trans.models.subproject import SubProject
PRIORITY_CHOICES = ( PRIORITY_CHOICES = (
(60, _('Very high')), (60, _('Very high')),
(80, _('High')), (80, _('High')),
...@@ -34,7 +32,7 @@ PRIORITY_CHOICES = ( ...@@ -34,7 +32,7 @@ PRIORITY_CHOICES = (
class Source(models.Model): class Source(models.Model):
checksum = models.CharField(max_length=40) checksum = models.CharField(max_length=40)
subproject = models.ForeignKey(SubProject) subproject = models.ForeignKey('SubProject')
timestamp = models.DateTimeField(auto_now_add=True) timestamp = models.DateTimeField(auto_now_add=True)
priority = models.IntegerField( priority = models.IntegerField(
default=100, default=100,
......
...@@ -24,7 +24,6 @@ from django.contrib.auth.models import User ...@@ -24,7 +24,6 @@ from django.contrib.auth.models import User
from weblate.lang.models import Language from weblate.lang.models import Language
from weblate.trans.checks import CHECKS from weblate.trans.checks import CHECKS
from weblate.trans.models.unit import Unit from weblate.trans.models.unit import Unit
from weblate.trans.models.project import Project
from weblate.trans.models.changes import Change from weblate.trans.models.changes import Change
from weblate.accounts.avatar import get_user_display from weblate.accounts.avatar import get_user_display
...@@ -103,7 +102,7 @@ class Suggestion(models.Model, RelatedUnitMixin): ...@@ -103,7 +102,7 @@ class Suggestion(models.Model, RelatedUnitMixin):
contentsum = models.CharField(max_length=40, db_index=True) contentsum = models.CharField(max_length=40, db_index=True)
target = models.TextField() target = models.TextField()
user = models.ForeignKey(User, null=True, blank=True) user = models.ForeignKey(User, null=True, blank=True)
project = models.ForeignKey(Project) project = models.ForeignKey('Project')
language = models.ForeignKey(Language) language = models.ForeignKey(Language)
votes = models.ManyToManyField( votes = models.ManyToManyField(
...@@ -265,7 +264,7 @@ class Comment(models.Model, RelatedUnitMixin): ...@@ -265,7 +264,7 @@ class Comment(models.Model, RelatedUnitMixin):
contentsum = models.CharField(max_length=40, db_index=True) contentsum = models.CharField(max_length=40, db_index=True)
comment = models.TextField() comment = models.TextField()
user = models.ForeignKey(User, null=True, blank=True) user = models.ForeignKey(User, null=True, blank=True)
project = models.ForeignKey(Project) project = models.ForeignKey('Project')
language = models.ForeignKey(Language, null=True, blank=True) language = models.ForeignKey(Language, null=True, blank=True)
timestamp = models.DateTimeField(auto_now_add=True, db_index=True) timestamp = models.DateTimeField(auto_now_add=True, db_index=True)
...@@ -295,7 +294,7 @@ CHECK_CHOICES = [(x, CHECKS[x].name) for x in CHECKS] ...@@ -295,7 +294,7 @@ CHECK_CHOICES = [(x, CHECKS[x].name) for x in CHECKS]
class Check(models.Model, RelatedUnitMixin): class Check(models.Model, RelatedUnitMixin):
contentsum = models.CharField(max_length=40, db_index=True) contentsum = models.CharField(max_length=40, db_index=True)
project = models.ForeignKey(Project) project = models.ForeignKey('Project')
language = models.ForeignKey(Language, null=True, blank=True) language = models.ForeignKey(Language, null=True, blank=True)
check = models.CharField(max_length=20, choices=CHECK_CHOICES) check = models.CharField(max_length=20, choices=CHECK_CHOICES)
ignore = models.BooleanField(db_index=True, default=False) ignore = models.BooleanField(db_index=True, default=False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment