Skip to content

Commit a02b4a6

Browse files
committed
enioka-Haute-Couture#209 update search, allow to see old candidate but not detail
1 parent 6b9e3cf commit a02b4a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% load i18n %}
2+
{% if record.start_date >= user.date_joined.date %}
23
<a class="btn btn-info btn-xs" href="{{ record.get_absolute_url }}">
34
<i class="fa fa-folder-open" aria-hidden="true"></i> {% trans "Show" %}
45
</a>
6+
{% endif %}

interview/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def search(request):
10041004
q = request.GET.get("q", "")
10051005

10061006
results = (
1007-
Process.objects.for_user(request.user)
1007+
Process.objects
10081008
.filter(Q(candidate__name__icontains=q) | Q(candidate__email__icontains=q))
10091009
.distinct()
10101010
)

0 commit comments

Comments
 (0)