Commit 7f2a2345687f04f4e7d48cd74fc2389b0e71b84a
1 parent
46e42288
Exists in
master
and in
39 other branches
Fixing fielderror
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/accounts/views.py
... | ... | @@ -75,7 +75,7 @@ class UserProfileDetailView(UserProfileBaseMixin, DetailView): |
75 | 75 | CounterClass = counter_class.get(type) |
76 | 76 | if CounterClass: |
77 | 77 | try: |
78 | - counter = CounterClass.objects.get(username=user.username) | |
78 | + counter = CounterClass.objects.get(author=user.username) | |
79 | 79 | except CounterClass.DoesNotExist: |
80 | 80 | count_types[trans(type)] = 0 |
81 | 81 | else: | ... | ... |