Fix for issue #4. Changed edited by username to standard name format.

This commit is contained in:
Tom Price
2015-01-22 19:31:43 +00:00
parent e3e57554c6
commit c4a14e97c2
3 changed files with 5 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ from django.conf import settings
import reversion import reversion
# Create your models here. # Create your models here.
class Profile(AbstractUser): class Profile(AbstractUser):
initials = models.CharField(max_length=5, unique=True, null=True, blank=True) initials = models.CharField(max_length=5, unique=True, null=True, blank=True)
@@ -286,7 +285,6 @@ class Invoice(models.Model):
void = models.BooleanField() void = models.BooleanField()
class Payment(models.Model): class Payment(models.Model):
CASH = 'C' CASH = 'C'
INTERNAL = 'I' INTERNAL = 'I'

View File

@@ -138,7 +138,8 @@
<a href="{% url 'event_duplicate' event.pk %}" class="btn btn-default" title="Duplicate Rig"><span <a href="{% url 'event_duplicate' event.pk %}" class="btn btn-default" title="Duplicate Rig"><span
class="glyphicon glyphicon-duplicate"></span></a> class="glyphicon glyphicon-duplicate"></span></a>
</div> </div>
<div>Last edited at {{ object.last_edited_at|date:"SHORT_DATETIME_FORMAT" }} by {{ object.last_edited_by }}. <div>Last edited at {{ object.last_edited_at|date:"SHORT_DATETIME_FORMAT" }}
by {{ object.last_edited_by.name }}.
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

Binary file not shown.