Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
concrexit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
thalia
concrexit
Commits
33d75764
Commit
33d75764
authored
5 years ago
by
Luko van der Maas
Browse files
Options
Downloads
Patches
Plain Diff
removed check for expiration date of vacancies
parent
82eff600
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1348
removed check for expiration date of vacancies
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/partners/views.py
+1
-3
1 addition, 3 deletions
website/partners/views.py
with
1 addition
and
3 deletions
website/partners/views.py
+
1
−
3
View file @
33d75764
from
random
import
random
from
django.shortcuts
import
get_object_or_404
,
render
from
django.utils
import
timezone
from
partners.models
import
Partner
,
Vacancy
,
VacancyCategory
...
...
@@ -37,8 +36,7 @@ def partner(request, slug):
def
vacancies
(
request
):
"""
View to show vacancies.
"""
context
=
{
'
vacancies
'
:
Vacancy
.
objects
.
exclude
(
expiration_date__lte
=
timezone
.
now
().
date
()).
order_by
(
'
?
'
),
'
vacancies
'
:
Vacancy
.
objects
.
order_by
(
'
?
'
),
'
categories
'
:
VacancyCategory
.
objects
.
all
(),
}
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
e8ec795b
·
5 years ago
mentioned in commit
e8ec795b
mentioned in commit e8ec795b68edc1a965a2ddc397be032aeb7a42d5
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment