old_contents: """Models for lore taxonomy application"""
  from __future__ import unicode_literals
  
  from django.db import models
  from django.utils.translation import ugettext_lazy as _
  
  from learningresources.models import (
      Repository,
      LearningResourceType,
      LearningResource,
  )
  
  
  class Vocabulary(models.Model):
      """Model for vocabulary table"""
      MANAGED = "m"
      FREE_TAGGING = "f"
  
      repository = models.ForeignKey(Repository, on_delete=models.PROTECT)
      name = models.TextField()
      description = models.TextField(
          help_text=_("Describe how content authors should use this vocabulary")
      )
      required = models.BooleanField()
      vocabulary_type = models.CharField(
          max_length=1,
          choices=(
              (MANAGED, _("Managed")),
              (FREE_TAGGING, _("Tag Style (on the fly)"))
          ),
          default="m",
          help_text=_("Should terms be created in advance or on the fly?")
      )
      weight = models.IntegerField()
  
      learning_resource_types = models.ManyToManyField(
          LearningResourceType,
          related_name="vocabularies",
          help_text=_("Resource types this vocabulary applies to")
      )
  
      # pylint: disable=missing-docstring,no-init,too-few-public-methods,
      class Meta:
          unique_together = (("repository", "name"),)
  
  
  class Term(models.Model):
      """Model for term table"""
      vocabulary = models.ForeignKey(Vocabulary, on_delete=models.PROTECT)
      label = models.TextField()
      weight = models.IntegerField()
  
      learning_resources = models.ManyToManyField(LearningResource,
                                                  related_name="terms")
  
      # pylint: disable=missing-docstring,no-init,too-few-public-methods,
      class Meta:
          unique_together = (('vocabulary', 'label'),)
  
new_contents: """Models for lore taxonomy application"""
  from __future__ import unicode_literals
  
  from django.db import models
  from django.utils.translation import ugettext_lazy as _
  
  from learningresources.models import (
      Repository,
      LearningResourceType,
      LearningResource,
  )
  
  
  class Vocabulary(models.Model):
      """Model for vocabulary table"""
      MANAGED = "m"
      FREE_TAGGING = "f"
  
      repository = models.ForeignKey(Repository, on_delete=models.PROTECT)
      name = models.TextField()
      description = models.TextField(
          help_text=_("Describe how content authors should use this vocabulary")
      )
      required = models.BooleanField()
      vocabulary_type = models.CharField(
          max_length=1,
          choices=(
              (MANAGED, _("Managed")),
              (FREE_TAGGING, _("Tag Style (on the fly)"))
          ),
          default="m",
          help_text=_("Should terms be created in advance or on the fly?")
      )
      weight = models.IntegerField()
  
      learning_resource_types = models.ManyToManyField(
          LearningResourceType,
          related_name="vocabularies",
          help_text=_("Resource types this vocabulary applies to")
      )
  
      # pylint: disable=missing-docstring,no-init,too-few-public-methods,
      class Meta:
          unique_together = (("repository", "name"),)
  
  
  class Term(models.Model):
      """Model for term table"""
      vocabulary = models.ForeignKey(Vocabulary, on_delete=models.PROTECT)
      label = models.TextField()
      weight = models.IntegerField()
  
      learning_resources = models.ManyToManyField(LearningResource,
                                                  related_name="terms")
  
      class Meta:
          # pylint: disable=missing-docstring,no-init,too-few-public-methods,
          unique_together = (('vocabulary', 'label'),)
  
subject: Move pylint comment to more specific scope (do pylint comments have scope?)