old_contents: # -*- coding: utf-8 -*-
  
  from django.db import models
  from django.contrib import admin
  
  class Tag(models.Model):
      name = models.CharField('Tag', max_length=32)
      def __unicode__(self):
          return self.name
  
  class Event(models.Model):
      name = models.CharField('Nimi', max_length=32)
      date = models.DateField('Päivämäärä')
      def __unicode__(self):
          return self.name
      
  class Compo(models.Model):
      event = models.ForeignKey(Event)
      name = models.CharField('Nimi', max_length=32)
      description = models.TextField('Kuvaus')
      def __unicode__(self):
          return self.event.name + ": " + self.name
  
  class Entry(models.Model):
      compo = models.ForeignKey(Compo)
      name = models.CharField('Nimi', max_length=32)
      description = models.TextField('Kuvaus')
      creator = models.CharField('Tekijä', max_length=64)
      file = models.FileField('Tiedosto', upload_to='entries/')
      youtube_url = models.URLField('Youtube URL', blank=True)
      tags = models.ManyToManyField(Tag)
      position = models.IntegerField('Sijoitus')
      def __unicode__(self):
          return self.compo.name + " " + self.name
  
  # Register models to admin panel
  admin.site.register(Tag)
  admin.site.register(Event)
  admin.site.register(Compo)
  admin.site.register(Entry)
  
new_contents: # -*- coding: utf-8 -*-
  
  from django.db import models
  from django.contrib import admin
  
  class Tag(models.Model):
      name = models.CharField('Tag', max_length=32)
      def __unicode__(self):
          return self.name
      class Meta:
          verbose_name=u"tagi"
          verbose_name_plural=u"tagit"
  
  class Event(models.Model):
      name = models.CharField('Nimi', max_length=32)
      date = models.DateField('Päivämäärä')
      def __unicode__(self):
          return self.name
      class Meta:
          verbose_name=u"tapahtuma"
          verbose_name_plural=u"tapahtumat"
      
  class Compo(models.Model):
      event = models.ForeignKey(Event)
      name = models.CharField('Nimi', max_length=32)
      description = models.TextField('Kuvaus')
      def __unicode__(self):
          return self.event.name + ": " + self.name
      class Meta:
          verbose_name=u"kompo"
          verbose_name_plural=u"kompot"
  
  class Entry(models.Model):
      compo = models.ForeignKey(Compo)
      name = models.CharField('Nimi', max_length=32)
      description = models.TextField('Kuvaus')
      creator = models.CharField('Tekijä', max_length=64)
      file = models.FileField('Tiedosto', upload_to='entries/')
      youtube_url = models.URLField('Youtube URL', blank=True)
      tags = models.ManyToManyField(Tag)
      position = models.IntegerField('Sijoitus')
      def __unicode__(self):
          return self.compo.name + " " + self.name
      class Meta:
          verbose_name=u"tuotos"
          verbose_name_plural=u"tuotokset"
  
  # Register models to admin panel
  admin.site.register(Tag)
  admin.site.register(Event)
  admin.site.register(Compo)
  admin.site.register(Entry)
  
subject: Add Meta classes to Arkisto models