Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
ab911770
Commit
ab911770
authored
Nov 09, 2016
by
Luuk Scholten
Browse files
Make courses visible again
They were not visible, now they are
parent
8ce861b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
website/education/migrations/0002_auto_20161109_2024.py
0 → 100644
View file @
ab911770
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-09 19:24
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'education'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'course'
,
name
=
'until'
,
field
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
),
),
]
website/education/models.py
View file @
ab911770
...
...
@@ -59,7 +59,7 @@ class Course(models.Model, metaclass=ModelTranslateMeta):
since
=
models
.
IntegerField
()
until
=
models
.
IntegerField
(
blank
=
True
blank
=
True
,
null
=
True
)
period
=
models
.
CharField
(
...
...
website/education/views.py
View file @
ab911770
...
...
@@ -14,7 +14,7 @@ from .models import Category, Course, Exam, Summary
def
courses
(
request
):
categories
=
Category
.
objects
.
all
()
objects
=
Course
.
objects
.
order_by
(
'name_'
+
request
.
LANGUAGE_CODE
).
filter
(
until
=
0
)
until
=
None
)
return
render
(
request
,
'education/courses.html'
,
{
'courses'
:
objects
,
'categories'
:
categories
})
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment