# Path: kraut_parser/models.py
# class Namespace(models.Model):
#     namespace = models.CharField(max_length=255, default='nospace', unique=True)
#     description = models.TextField(null=True, blank=True)
# 
#     def __unicode__(self):
#         return u"%s" % (self.namespace)
# 
#     class Meta:
#         ordering = ['namespace']


from django.db import models
from django.contrib.auth.models import User
from kraut_parser.models import Namespace
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4



# Create your models here.

class UserExtension(models.Model):
    user = models.OneToOneField(User, primary_key=True, on_delete=models.CASCADE)
    icon = models.CharField(max_length=100, default="ns_icon/octalpus.png")

# Path: kraut_parser/models.py
# class Namespace(models.Model):
#     namespace = models.CharField(max_length=255, default='nospace', unique=True)
#     description = models.TextField(null=True, blank=True)
# 
#     def __unicode__(self):
#         return u"%s" % (self.namespace)
# 
#     class Meta:
#         ordering = ['namespace']


# Path: kraut_accounts/models.py
from django.db import models
from django.contrib.auth.models import User
from kraut_parser.models import Namespace

# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4



# Create your models here.

class UserExtension(models.Model):
    user = models.OneToOneField(User, primary_key=True, on_delete=models.CASCADE)
    icon = models.CharField(max_length=100, default="ns_icon/octalpus.png")

    namespaces = models.ManyToManyField(Namespace, blank=True)