From c17fdb2b7a227d64944cf3f71deb5c4fb61c3073 Mon Sep 17 00:00:00 2001 From: Adam Trager Date: Wed, 6 Jan 2016 17:35:34 -0500 Subject: [PATCH 1/3] Add timestamp to comments on HR applications, removed useless 'App ID' field from HR overview --- hrapplications/models.py | 1 + stock/templates/registered/hrapplicationmanagement.html | 4 +--- stock/templates/registered/hrapplicationview.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hrapplications/models.py b/hrapplications/models.py index 3e6bd0ed..0b8c65ca 100755 --- a/hrapplications/models.py +++ b/hrapplications/models.py @@ -27,6 +27,7 @@ class HRApplication(models.Model): class HRApplicationComment(models.Model): + created_on = models.DateTimeField(auto_now_add=True) comment = models.CharField(max_length=254, default="") application = models.ForeignKey(HRApplication) commenter_user = models.ForeignKey(User) diff --git a/stock/templates/registered/hrapplicationmanagement.html b/stock/templates/registered/hrapplicationmanagement.html index 189e8fe6..b1bf5927 100755 --- a/stock/templates/registered/hrapplicationmanagement.html +++ b/stock/templates/registered/hrapplicationmanagement.html @@ -21,9 +21,8 @@ - +
- {% for personal_app in personal_apps %} - diff --git a/stock/templates/registered/hrapplicationview.html b/stock/templates/registered/hrapplicationview.html index 571a5586..79c262fd 100755 --- a/stock/templates/registered/hrapplicationview.html +++ b/stock/templates/registered/hrapplicationview.html @@ -164,7 +164,7 @@ {% for comment in comments %}
Application ID Username Main Character Corporation @@ -32,7 +31,6 @@
{{ personal_app.id }} {{ personal_app.user.username }} {{ personal_app.character_name }} {{ personal_app.corp.corporation_name }}