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
69935abe
Commit
69935abe
authored
Jul 12, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Share query
parent
da8a773e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trans/models/unit.py
trans/models/unit.py
+2
-2
No files found.
trans/models/unit.py
View file @
69935abe
...
...
@@ -875,6 +875,7 @@ class Unit(models.Model):
checks_to_run
=
CHECKS
cleanup_checks
=
True
was_change
=
False
checks
=
self
.
checks
()
if
(
same_state
or
is_new
)
and
not
self
.
translated
:
# Check whether there is any message with same source
...
...
@@ -891,7 +892,6 @@ class Unit(models.Model):
# Delete all checks if only message with this source is fuzzy
if
not
same_source
.
exists
():
checks
=
self
.
checks
()
if
checks
.
exists
():
checks
.
delete
()
self
.
update_has_failing_check
(
True
)
...
...
@@ -907,7 +907,7 @@ class Unit(models.Model):
src
=
self
.
get_source_plurals
()
tgt
=
self
.
get_target_plurals
()
old_target_checks
=
set
(
self
.
checks
()
.
values_list
(
'check'
,
flat
=
True
))
old_target_checks
=
set
(
checks
.
values_list
(
'check'
,
flat
=
True
))
old_source_checks
=
set
(
self
.
source_checks
().
values_list
(
'check'
,
flat
=
True
))
...
...
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