Fix a problem getting the var_name in discussion workflow templatetags
After a user creation, add it to teachers group if there is some invitation to it.