deprecated=models.BooleanField(default=False,verbose_name=_('show deprecation messaging in Studio'))
deprecated=models.BooleanField(
default=False,
verbose_name=_('show deprecation messaging in Studio'),
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):
classMeta(object):
app_label="xblock_django"
app_label="xblock_django"
unique_together=("name","template")
@classmethod
@classmethod
defdeprecated_xblocks(cls):
defdeprecated_xblocks(cls):
...
@@ -120,12 +129,16 @@ class XBlockConfig(models.Model):
...
@@ -120,12 +129,16 @@ class XBlockConfig(models.Model):