+ def get_absolute_url(self):
+ return "%s?c=%d" % (reverse("curriculum"), self.pk)
+
+ def for_level(self, level):
+ return self.competencelevel_set.get(level=level)
+
+ @classmethod
+ def from_text(cls, text):
+ name = text.rsplit(u'\u2013', 1)[-1].strip()
+ return cls.objects.get(name__iexact=name)
+