Пример #1
0
def join(request, group,  template_name="plus_groups/group.html", current_app='plus_groups', **kwargs):

    group.join(request.user)

    # have to do this here, because models.join is too tied up with group creation 
    # permission infrastructure for group not sufficiently ready to create child FeedItems 
    from apps.plus_feed.models import FeedItem # avoid circularity                                                   
    FeedItem.post_JOIN(request.user, group)

    return HttpResponseRedirect(reverse(current_app + ':group',args=(group.id,)))