old_contents: from django.db import models
  
  
  class RelatedLink(models.Model):
      title_PT = models.CharField(max_length=100, blank=True, null=False)
      title_EN = models.CharField(max_length=100, blank=True, null=False)
      title_DE = models.CharField(max_length=100, blank=True, null=False)
      description_PT = models.TextField(max_length=1000, blank=True, null=False)
      description_EN = models.TextField(max_length=1000, blank=True, null=False)
      description_DE = models.TextField(max_length=1000, blank=True, null=False)
      link = models.URLField(max_length=100, blank=True, null=False)
      img = models.ImageField(null=True, blank=True)
      keywords_SEO = models.TextField(max_length=1000, blank=True, null=False)
      description_SEO = models.TextField(max_length=1000, blank=True, null=False)
  
      def get_absolute_url(self):
          return "/related-links/%i/" % self.id
  
      def __str__(self):
          return self.title_EN
  
      def __unicode__(self):
          return self.title_EN
  
  
new_contents: from django.db import models
  
  
  class RelatedLink(models.Model):
      title_PT = models.CharField(max_length=100, blank=True, null=False)
      title_EN = models.CharField(max_length=100, blank=True, null=False)
      title_DE = models.CharField(max_length=100, blank=True, null=False)
      description_PT = models.TextField(max_length=1000, blank=True, null=False)
      description_EN = models.TextField(max_length=1000, blank=True, null=False)
      description_DE = models.TextField(max_length=1000, blank=True, null=False)
      link = models.URLField(max_length=100, blank=True, null=False)
      img = models.ImageField(null=True, blank=False)
      keywords_SEO = models.TextField(max_length=1000, blank=True, null=False)
      description_SEO = models.TextField(max_length=1000, blank=True, null=False)
  
      def get_absolute_url(self):
          return "/related-links/%i/" % self.id
  
      def __str__(self):
          return self.title_EN
  
      def __unicode__(self):
          return self.title_EN
  
  
subject: create required img field