@@ -109,37 +115,46 @@ class XBlockConfig(models.Model):
help_text=_("Only xblocks listed in a course's Advanced Module List can be flagged as deprecated. Note that deprecation is by xblock name, and is not specific to template.")
)
# TODO: error if deprecated is set on core xblock types?
# TODO: error if disabled is set on core xblock types (or something with a template)?
classMeta(object):
app_label="xblock_django"
unique_together=("name","template")
@classmethod
defdeprecated_xblocks(cls):
""" Return list of deprecated XBlock types. """
""" Return the QuerySet of deprecated XBlock types. """
returncls.objects.filter(deprecated=True)
@classmethod
defdisabled_xblocks(cls):
""" Return list of xblocks that should not render. """
""" Return the QuerySet of XBlocks that are disabled. """