Skip to content

Instantly share code, notes, and snippets.

@issackelly
Created July 22, 2010 00:14
Show Gist options
  • Save issackelly/485366 to your computer and use it in GitHub Desktop.
Save issackelly/485366 to your computer and use it in GitHub Desktop.
>>> from pinax.apps.projects.models import Project
>>> from django.contrib.auth.models import User
>>> from pinax.apps.tasks.models import Task
>>> t1 = Task.objects.get(pk=1)
>>> t2= Task.objects.get(pk=2)
>>> t2.get_absolute_url()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/issackelly/envs/new/lib/python2.6/site-packages/django/utils/functional.py", line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/home/issackelly/envs/new/lib/python2.6/site-packages/django/db/models/base.py", line 941, in get_absolute_url
return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/home/issackelly/envs/new/lib/python2.6/site-packages/pinax/apps/tasks/models.py", line 105, in get_absolute_url
return self.group.content_bridge.reverse("task_detail", self.group, kwargs)
AttributeError: 'Project' object has no attribute 'content_bridge'
>>> p = Project.objects.get(pk=1)
>>> p.content_bridge
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'Project' object has no attribute 'content_bridge'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment