diff --git a/hr/models.py b/hr/models.py index 46e6b88..61a7f55 100644 --- a/hr/models.py +++ b/hr/models.py @@ -83,6 +83,10 @@ class Application(models.Model): return self.audit_set.all().order_by('-date')[0] return None + @property + def alt_application(self): + return EVEPlayerCharacters.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0 + def save(self, *args, **kwargs): user = None diff --git a/templates/hr/applications/view_list.html b/templates/hr/applications/view_list.html index d3e8c44..697a5c4 100644 --- a/templates/hr/applications/view_list.html +++ b/templates/hr/applications/view_list.html @@ -6,7 +6,7 @@
This list shows your current open applications
{% if apps %}| Application ID | Character | Corporation | Application Status |
|---|---|---|---|
| Application ID | Character | Corporation | Application Status |
| {{ app.id }} | {{ app.character }} |