from django.contrib.auth.models import AbstractUser, Group
from django.db import models


class ForumUser(AbstractUser):
    def __unicode__(self):
        return '%(username)s (%(email)s)' % {
            'username': self.username,
            'email': self.email
        }

from django.contrib.auth.models import AbstractUser, Group
from django.db import models


class ForumUser(AbstractUser):
    items_per_page = models.PositiveSmallIntegerField(blank=True, null=True)

    def __unicode__(self):
        return '%(username)s (%(email)s)' % {
            'username': self.username,
            'email': self.email
        }

Add items per page as a preference to the forumm user model
Add items per page as a preference to the forumm user model

  from django.contrib.auth.models import AbstractUser, Group
  from django.db import models
  
  
  class ForumUser(AbstractUser):
+     items_per_page = models.PositiveSmallIntegerField(blank=True, null=True)
+ 
      def __unicode__(self):
          return '%(username)s (%(email)s)' % {
              'username': self.username,
              'email': self.email
          }
  
Add items per page as a preference to the forumm user model
## Code Before:
from django.contrib.auth.models import AbstractUser, Group
from django.db import models


class ForumUser(AbstractUser):
    def __unicode__(self):
        return '%(username)s (%(email)s)' % {
            'username': self.username,
            'email': self.email
        }

## Instruction:
Add items per page as a preference to the forumm user model
## Code After:
from django.contrib.auth.models import AbstractUser, Group
from django.db import models


class ForumUser(AbstractUser):
    items_per_page = models.PositiveSmallIntegerField(blank=True, null=True)

    def __unicode__(self):
        return '%(username)s (%(email)s)' % {
            'username': self.username,
            'email': self.email
        }
