mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-07-02 23:30:24 +02:00
Remove duplicate entries from django ticket query
This commit is contained in:
@ -133,7 +133,7 @@ class __Query__:
|
||||
if sortreverse:
|
||||
sorting = "-%s" % sorting
|
||||
queryset = queryset.order_by(sorting)
|
||||
return queryset
|
||||
return queryset.distinct() # https://stackoverflow.com/questions/30487056/django-queryset-contains-duplicate-entries
|
||||
|
||||
def get_cache_key(self):
|
||||
return str(self.huser.user.pk) + ":" + self.base64
|
||||
|
Reference in New Issue
Block a user