mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-24 07:03:44 +00:00
make failures a property
This commit is contained in:
parent
887df1ac4b
commit
50733bce76
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class AccessAttempt(models.Model):
|
|||
def __unicode__(self):
|
||||
return u'Attempted Access: %s' % self.attempt_time
|
||||
|
||||
@property
|
||||
def failures(self):
|
||||
return self.failures_since_start
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue