from forum.templatetags.extra_tags import get_score_badge
from forum.utils.html import cleanup_urls
from forum import settings
from forum.templatetags.extra_tags import get_score_badge
from forum.utils.html import cleanup_urls
from forum import settings
- url=lambda u, c: reverse('edit_user', kwargs={'id': c['user'].id}),
+ url=lambda u, c: reverse('edit_user', kwargs={
+ 'id': c['user'].id,
+ 'slug' : slugify(c['user'].username)
+ }),
- url=lambda u, c: reverse('user_subscriptions', kwargs={'id': c['user'].id, 'slug': slugify(c['user'].username)}),
+ url=lambda u, c: User.objects.get(id=int(c['user'].id)).get_user_subscriptions_url(),