fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bubbles should preserver width when dragged.
[edumed.git]
/
curriculum
/
views.py
diff --git
a/curriculum/views.py
b/curriculum/views.py
index
32e91e0
..
e5d30c7
100644
(file)
--- a/
curriculum/views.py
+++ b/
curriculum/views.py
@@
-13,7
+13,11
@@
class CompetencesView(ListView):
def get_context_data(self, **kwargs):
context = super(CompetencesView, self).get_context_data(**kwargs)
def get_context_data(self, **kwargs):
context = super(CompetencesView, self).get_context_data(**kwargs)
- context['levels'] = Level.objects.all()
+
+ context['levels'] = SortedDict()
+ for level in Level.objects.all():
+ context['levels'].setdefault(level.group, []).append(level)
+
context['sections'] = Section.objects.all()
errors = {}
context['sections'] = Section.objects.all()
errors = {}