Added flagging of alt applications

This commit is contained in:
2011-02-24 16:42:15 +00:00
parent df8a8c9554
commit 1939c2e671
2 changed files with 5 additions and 1 deletions

View File

@@ -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