fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some frontend changes
[edumed.git]
/
curriculum
/
models.py
diff --git
a/curriculum/models.py
b/curriculum/models.py
index
399536b
..
debc487
100644
(file)
--- a/
curriculum/models.py
+++ b/
curriculum/models.py
@@
-28,6
+28,9
@@
class Competence(models.Model):
def __unicode__(self):
return self.name
+ def for_level(self, level):
+ return self.competencelevel_set.get(level=level)
+
class Level(models.Model):
name = models.CharField(_('name'), max_length=255)
slug = models.SlugField(_('slug'))