From: gfawcett Date: Sat, 2 Oct 2010 19:57:54 +0000 (+0000) Subject: * conifer/syrup/views/sites.py: bugfix in join-this-site function. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=82ae8b72f1552c27b9d168f4cd9bb17b9f242e72;p=syrup%2Fmasslnc.git * conifer/syrup/views/sites.py: bugfix in join-this-site function. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1028 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/syrup/views/sites.py b/conifer/syrup/views/sites.py index b06c20c..838f95e 100644 --- a/conifer/syrup/views/sites.py +++ b/conifer/syrup/views/sites.py @@ -131,7 +131,8 @@ def site_join(request, site_id): elif request.method != 'POST': return g.render('site_join.xhtml', site=site) else: + group = models.Group.objects.get(site=site, external_id=None) mbr = models.Membership.objects.create(user=request.user, - site=site, role='STUDT') + group=group, role='STUDT') mbr.save() return HttpResponseRedirect(site.site_url())