# -*- coding: utf-8 -*-
# Import chosenforms for pretty search forms
from chosen import forms as chosenforms
# Import the AbstractUser model
from django.contrib.auth.models import AbstractUser

# Import the basic Django ORM models and forms library
from django.db import models
from django import forms

# Import tags for searching
from taggit.models import Tag
from taggit.models import TagBase
from taggit.managers import TaggableManager

from django.utils.translation import ugettext_lazy as _

# Create seperate classes for each tag type that will be a foreign key reference from User
class TeachSkills(models.Model):
    skills = TaggableManager()

class LearnSkills(models.Model):
    skills = TaggableManager()

# Subclass AbstractUser
class User(AbstractUser):

    def __unicode__(self):
        return self.username

    teach = models.ForeignKey(TeachSkills, null=True)
    learn = models.ForeignKey(LearnSkills, null=True)
    short_bio = models.TextField()
    location = models.CharField(max_length=50)
@@ -712,16 +712,321 @@
 ager()%0A%0A
+class UserManager(models.Manager):%0A    def create(self, name):%0A        new_user = Food()%0A        new_user.name = name%0A        new_user.teach = TeachSkills()%0A        new_user.teach.save()%0A        new_user.learn = LearnSkills()%0A        new_user.learn.save()%0A        new_user.save()%0A        return new_user%0A%0A
 # Subcla
@@ -1124,16 +1124,52 @@
 sername%0A
+        %0A    objects = UserManager()
 %0A    tea

Create UserManager to ensure ForeignKey relation is saved and associated with User upon creation