[damned-lies] Remove leftover get_state calls
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Remove leftover get_state calls
- Date: Fri, 20 May 2011 21:26:02 +0000 (UTC)
commit 59c2c6bfa5a05f16a7ac00ebc2760ffd11439fc8
Author: Claude Paroz <claude 2xlibre net>
Date: Fri May 20 23:16:49 2011 +0200
Remove leftover get_state calls
templates/languages/language_release_stats.html | 2 +-
templates/people/person_detail.html | 2 +-
vertimus/models.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/templates/languages/language_release_stats.html b/templates/languages/language_release_stats.html
index 2d28e70..5bf742b 100644
--- a/templates/languages/language_release_stats.html
+++ b/templates/languages/language_release_stats.html
@@ -72,7 +72,7 @@
<td>
{% if stat.state.name %}
{% if stat.state.name != "None" %}
- <em><small>{{ stat.state.get_state }}</small></em></td>
+ <em><small>{{ stat.state.description }}</small></em></td>
<td><span style="display: none;">{{ stat.state.updated|date:"c" }}</span><em><small>{{ stat.state.updated|date:"DATE_FORMAT" }}
{% else %}
{% if stat.state.last_comment %}
diff --git a/templates/people/person_detail.html b/templates/people/person_detail.html
index e168c8d..0e7398f 100644
--- a/templates/people/person_detail.html
+++ b/templates/people/person_detail.html
@@ -58,7 +58,7 @@ $(document).ready(function()
<tr>
<td><span style="display: none;">{{ state.updated|date:"c" }}</span>{{ state.updated|naturalday:"DATE_FORMAT" }}</td>
<td><a href="{{ state.get_absolute_url }}">{{ state.branch.module.get_description }} - {{ state.branch.name }} - {{ state.domain.get_description }} - {{ state.language.get_name }}</a></td>
- <td>{{ state.get_state }}</td>
+ <td>{{ state.description }}</td>
</tr>
{% endfor %}
</tbody>
diff --git a/vertimus/models.py b/vertimus/models.py
index bc2f97e..e9c2114 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -469,7 +469,7 @@ class ActionAbstract(object):
@property
def state(self):
- return self._action_db.state_db.get_state()
+ return self._action_db.state_db
def get_previous_action_with_po(self):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]