old_contents: from django.db import models
  from django.utils.translation import ugettext as _
  
  from platforms.models import Platform
  
  
  class Runner(models.Model):
      """ Model definition for the runners """
      name = models.CharField(_("Name"), max_length=127)
      slug = models.SlugField(unique=True)
      website = models.CharField(_("Website"), max_length=127, blank=True)
      icon = models.ImageField(upload_to='runners/icons', blank=True)
      platforms = models.ManyToManyField(Platform, related_name='runners')
  
      # pylint: disable=W0232, R0903
      class Meta(object):
          ordering = ['name']
  
      def __unicode__(self):
          return self.name
  
      def save(self, *args, **kwargs):
          return super(Runner, self).save(*args, **kwargs)
  
      @staticmethod
      def autocomplete_search_fields():
          return ('name__icontains', )
  
  
  class RunnerVersion(models.Model):
      class Meta(object):
          ordering = ('version', 'arch')
  
      ARCH_CHOICES = (
          ('i386', '32 bit'),
          ('x86_64', '64 bit'),
          ('arm', 'ARM'),
      )
  
      def __unicode__(self):
          return u"{} v{} ({})".format(self.runner.name,
                                       self.version,
                                       self.architecture)
  
      runner = models.ForeignKey(Runner, related_name='versions')
      version = models.CharField(max_length=32)
      architecture = models.CharField(max_length=8,
                                      choices=ARCH_CHOICES,
                                      default='x86_64')
      url = models.URLField(blank=True)
  
new_contents: from django.db import models
  from django.utils.translation import ugettext as _
  
  from platforms.models import Platform
  
  
  class Runner(models.Model):
      """ Model definition for the runners """
      name = models.CharField(_("Name"), max_length=127)
      slug = models.SlugField(unique=True)
      website = models.CharField(_("Website"), max_length=127, blank=True)
      icon = models.ImageField(upload_to='runners/icons', blank=True)
      platforms = models.ManyToManyField(Platform, related_name='runners')
  
      # pylint: disable=W0232, R0903
      class Meta(object):
          ordering = ['name']
  
      def __unicode__(self):
          return self.name
  
      def save(self, *args, **kwargs):
          return super(Runner, self).save(*args, **kwargs)
  
      @staticmethod
      def autocomplete_search_fields():
          return ('name__icontains', )
  
  
  class RunnerVersion(models.Model):
      class Meta(object):
          ordering = ('version', 'architecture')
  
      ARCH_CHOICES = (
          ('i386', '32 bit'),
          ('x86_64', '64 bit'),
          ('arm', 'ARM'),
      )
  
      def __unicode__(self):
          return u"{} v{} ({})".format(self.runner.name,
                                       self.version,
                                       self.architecture)
  
      runner = models.ForeignKey(Runner, related_name='versions')
      version = models.CharField(max_length=32)
      architecture = models.CharField(max_length=8,
                                      choices=ARCH_CHOICES,
                                      default='x86_64')
      url = models.URLField(blank=True)
  
subject: Fix field name