from django.contrib.auth.models import User
from django.db import models
from uuidfield.fields import UUIDField
from storybase.fields import ShortTextField

class Organization(models.Model):
    """ An organization or a community group that users and stories can be associated with. """
    organization_id = UUIDField(auto=True)
    name = ShortTextField()
    slug = models.SlugField()
    website_url = models.URLField(blank=True)
    members = models.ManyToManyField(User, related_name='organizations', blank=True)

    def __unicode__(self):
        return self.name

    @models.permalink
    def get_absolute_url(self):
        return ('organization_detail', [self.organization_id])

class Project(models.Model):
    """ 
    A project that collects related stories.  
    
    Users can also be related to projects.
    """
    project_id = UUIDField(auto=True)
    name = models.CharField(max_length=200)
    slug = models.SlugField()
    members = models.ManyToManyField(User, related_name='projects', blank=True) 

    def __unicode__(self):
        return self.name

from django.contrib.auth.models import User
from django.db import models
from uuidfield.fields import UUIDField
from storybase.fields import ShortTextField

class Organization(models.Model):
    """ An organization or a community group that users and stories can be associated with. """
    organization_id = UUIDField(auto=True)
    name = ShortTextField()
    slug = models.SlugField()
    website_url = models.URLField(blank=True)
    members = models.ManyToManyField(User, related_name='organizations', blank=True)

    def __unicode__(self):
        return self.name

    @models.permalink
    def get_absolute_url(self):
        # TODO: Implement this view and URL pattern
        return ('organization_bootstrap', [self.organization_id])

class Project(models.Model):
    """ 
    A project that collects related stories.  
    
    Users can also be related to projects.
    """
    project_id = UUIDField(auto=True)
    name = models.CharField(max_length=200)
    slug = models.SlugField()
    members = models.ManyToManyField(User, related_name='projects', blank=True) 

    def __unicode__(self):
        return self.name

--- 
+++ 
@@ -16,8 +16,7 @@
 
     @models.permalink
     def get_absolute_url(self):
-        # TODO: Implement this view and URL pattern
-        return ('organization_bootstrap', [self.organization_id])
+        return ('organization_detail', [self.organization_id])
 
 class Project(models.Model):
     """ 
Use correct named view for organization detail view
