Add state info to dashboard, improve stat change notifications, improve auth tests

This commit is contained in:
ErikKalkoken
2020-07-03 14:58:45 +02:00
parent e44c2935f9
commit f1a21bb856
11 changed files with 214 additions and 182 deletions

View File

@@ -75,8 +75,8 @@ class UserProfile(models.Model):
self.save(update_fields=['state'])
notify(
self.user,
_('State Changed'),
_('Your user state has been changed to %(state)s')
_('State changed to: %s' % state),
_('Your user\'s state is now: %(state)s')
% ({'state': state}),
'info'
)