add profile page, listing groups and teams
This commit is contained in:
parent
4101c84e26
commit
de137b0df9
4 changed files with 52 additions and 0 deletions
|
@ -8,6 +8,17 @@ from issue.forms import *
|
|||
import shlex
|
||||
|
||||
|
||||
def profile(request):
|
||||
|
||||
user = User.objects.get(username=request.user)
|
||||
|
||||
c = {
|
||||
'groups': user.groups.all(),
|
||||
'teams': user.teams.all(),
|
||||
}
|
||||
|
||||
return render(request, 'issue/profile.html', c)
|
||||
|
||||
def project_list(request):
|
||||
|
||||
if not request.projects.exists():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue