Insert the user in the template context

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-21 23:20:58 -04:00
parent 9ebace4014
commit a3e8b53f01

View File

@@ -365,7 +365,8 @@ class UserOptionsEditView(SingleObjectEditView):
return {
'title': _(
'Edit options for user: %s'
) % self.get_user()
) % self.get_user(),
'object': self.get_user()
}
def get_object(self, queryset=None):