mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-17 06:30:25 +00:00
Ooooooooo pretty.
This commit is contained in:
parent
af11cb012e
commit
e7f8170237
2 changed files with 3 additions and 3 deletions
|
|
@ -76,9 +76,9 @@ class LogEntry(models.Model):
|
|||
|
||||
@property
|
||||
def action_type(self):
|
||||
if self.is_addition:
|
||||
if self.is_addition():
|
||||
return _('added')
|
||||
if self.is_change:
|
||||
if self.is_change():
|
||||
return _('changed')
|
||||
if self.is_deletion():
|
||||
return _('deleted')
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
<tr>
|
||||
<td>{{ log.action_time }}</td>
|
||||
<td>{{ log.user }}</td>
|
||||
<td>{{ log.action_flag }}</td>
|
||||
<td>{{ log.action_type|capfirst }}</td>
|
||||
<td>{{ log.change_message }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue