|
|
|
|
@ -25,8 +25,10 @@ class SearchDetailView(generic.DetailView): |
|
|
|
|
self.get_object().save() |
|
|
|
|
|
|
|
|
|
identity = self.get_object().searches.filter(similarity=146)[0] |
|
|
|
|
identity_results = identity.results.all() |
|
|
|
|
identity_results = identity.results.filter(status='Acting') |
|
|
|
|
identity_expired_results = identity.results.all().exclude(status='Acting') |
|
|
|
|
context['identity'] = identity_results |
|
|
|
|
context['identity_expired'] = identity_expired_results |
|
|
|
|
identity_ids = identity_results.values_list('id', flat=True) |
|
|
|
|
nice_busy_ids = identity_results.values_list('nices__nice_id', flat=True).distinct() |
|
|
|
|
|
|
|
|
|
|