from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User as DjangoUser, AnonymousUser as DjangoAnonymousUser
from django.db.models import Q, Manager
+from django.core.urlresolvers import get_script_prefix
from django.utils.encoding import smart_unicode
return ('user_profile', (), keyword_arguments)
def get_absolute_url(self):
- return self.get_profile_url()
+ root_relative_url = self.get_profile_url()
+ relative_url = root_relative_url[len(get_script_prefix()):]
+ return '%s/%s' % (django_settings.APP_URL, relative_url)
@models.permalink
def get_asked_url(self):