Skip to content

Commit aaf3b70

Browse files
committed
Merge pull request #2308 from learningequality/release-0.12.0
Release 0.12.5
2 parents b6a44fb + 3c51270 commit aaf3b70

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed

kalite/control_panel/templates/control_panel/facility_management.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,13 @@ <h2>{% trans "Students" %}&nbsp;<small>
363363
<ul class="pagination pagination-sm">
364364
<li><a title="{% trans 'Browse to the previous page of students.' %}" {% if student_pages.has_previous %}href="{{ page_urls.students.prev_page }}#students"{% endif %}>&laquo;</a></li>
365365
{% for listed_page in student_pages.listed_pages %}
366-
<li {% if listed_page == student_pages.number %} class="active"><a disabled="disabled">{{student_pages.number}}</a>
367-
{% else %}>
368-
<a title="{% blocktrans %}Browse to page # {{ listed_page }} of students.{% endblocktrans %}" href="{{ page_urls.students|get_item:listed_page }}#students">{{ listed_page }}</a>
369-
{% endif %}
370-
</li>
366+
{% if listed_page == -1 %}
367+
<li><a disabled="disabled">&hellip;</a></li>
368+
{% elif listed_page == student_pages.number %}
369+
<li class="active"><a disabled="disabled">{{student_pages.number}}</a></li>
370+
{% else %}
371+
<li><a title="{% blocktrans %}Browse to page # {{ listed_page }} of students.{% endblocktrans %}" href="{{ page_urls.students|get_item:listed_page }}#students">{{ listed_page }}</a></li>
372+
{% endif %}
371373
{% endfor %}
372374
<li><a title="{% trans 'Browse to the next page of students.' %}" {% if student_pages.has_next %}href="{{ page_urls.students.next_page }}#students"{% endif %}>&raquo;</a></li>
373375
</ul>

kalite/version.py

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
11
# THIS IS USED BY settings.py. NEVER import settings.py here; hard-codes only!
2-
# this is actually 0.12.2, but we need to update language pack version fallbacks before changing here
2+
# this is actually 0.12.5, but we need to update language pack version fallbacks before changing here
33
VERSION = "0.12.0"
44
VERSION_INFO = {
55

6+
"0.12.5": {
7+
"release_date": "2014/08/08",
8+
"git_commit": "19055bb",
9+
"new_features": {
10+
"all": [],
11+
"students": [],
12+
"coaches": [],
13+
"admins": [],
14+
},
15+
"bugs_fixed": {
16+
"all": [],
17+
"students": [],
18+
"coaches": [],
19+
"admins": ["Critical fix: ensure models created elsewhere sync after being modified"],
20+
},
21+
},
22+
623
"0.12.4": {
724
"release_date": "2014/08/07",
8-
"git_commit": "8c3c3",
25+
"git_commit": "8c3c331",
926
"new_features": {
1027
"all": [],
1128
"students": [],
1229
"coaches": [],
1330
"admins": [],
1431
},
1532
"bugs_fixed": {
16-
"all": ["Run setup when database is not initialized on startup"],
33+
"all": [],
1734
"students": ["Stop opening new tabs when opening related videos from exercises"],
1835
"coaches": [],
19-
"admins": [],
36+
"admins": ["Run setup when database is not initialized on startup"],
2037
},
2138
},
2239

2340
"0.12.3": {
2441
"release_date": "2014/08/02",
25-
"git_commit": "90f88",
42+
"git_commit": "90f8880",
2643
"new_features": {
2744
"all": [],
2845
"students": ["Numpad for student exercises"],

python-packages/securesync/engine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_models(device_counters=None, limit=None, zone=None, dest_version=None, *
136136

137137
device = Device.all_objects.get(pk=device_id)
138138

139-
queryset = Model.all_objects.filter(Q(signed_by=device) | Q(signed_by__isnull=True))
139+
queryset = Model.all_objects.filter(Q(signed_by=device) | Q(signed_by__isnull=True) | Q(counter__isnull=True))
140140

141141
# for trusted (central) device, only include models with the correct fallback zone
142142
if not device.in_zone(zone):

0 commit comments

Comments
 (0)