Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
f004436b
Commit
f004436b
authored
Jul 30, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid explicit import
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
61b1a7f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
weblate/trans/models/source.py
weblate/trans/models/source.py
+1
-3
weblate/trans/models/unitdata.py
weblate/trans/models/unitdata.py
+3
-4
No files found.
weblate/trans/models/source.py
View file @
f004436b
...
@@ -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
,
...
...
weblate/trans/models/unitdata.py
View file @
f004436b
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment