show recent changesets in user view

This commit is contained in:
Laura Klünder 2017-07-04 23:33:26 +02:00
parent f53f20ef9a
commit d8694a0290
4 changed files with 37 additions and 11 deletions

View file

@ -11,7 +11,7 @@ def user_detail(request, pk):
if str(pk) != str(user.pk):
user = get_object_or_404(User, pk=pk)
qs = ChangeSet.objects.filter(author=user)
qs = ChangeSet.objects.filter(author=user).order_by('-last_update')[:10]
ctx = {
'user': user,