show recent changesets in user view
This commit is contained in:
parent
f53f20ef9a
commit
d8694a0290
4 changed files with 37 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue