old_contents: # -*- coding: utf-8 -*-
  from django.db import models
  from django.contrib.auth.models import AbstractUser
  from django.utils.translation import ugettext_lazy as _
  from django.core.validators import MaxValueValidator
  from django.conf import settings
  
  # Create your models here.
  class Lageruser(AbstractUser):
      language = models.CharField(max_length=10, null=True, choices=settings.LANGUAGES, default=settings.LANGUAGES[0])
      pagelength = models.IntegerField(validators=[
              MaxValueValidator(250)
          ], default=30)
      def __unicode__(self):
          if self.first_name != "" and self.last_name != "":
              return u"{0} {1}".format(self.first_name, self.last_name)
          else:
              return self.username
  
      class Meta:
          verbose_name = _('User')
          verbose_name_plural = _('Users')
          permissions = (
              ("read_user", _("Can read User")),
          )
new_contents: # -*- coding: utf-8 -*-
  from django.db import models
  from django.contrib.auth.models import AbstractUser
  from django.utils.translation import ugettext_lazy as _
  from django.core.validators import MaxValueValidator
  from django.conf import settings
  
  # Create your models here.
  class Lageruser(AbstractUser):
      language = models.CharField(max_length=10, null=True, choices=settings.LANGUAGES, default=settings.LANGUAGES[0][0])
      pagelength = models.IntegerField(validators=[
              MaxValueValidator(250)
          ], default=30)
      def __unicode__(self):
          if self.first_name != "" and self.last_name != "":
              return u"{0} {1}".format(self.first_name, self.last_name)
          else:
              return self.username
  
      class Meta:
          verbose_name = _('User')
          verbose_name_plural = _('Users')
          permissions = (
              ("read_user", _("Can read User")),
          )
subject: Fix for default language