[open-ils-commits] r1028 - servres/trunk/conifer/syrup/views (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Oct 2 15:57:59 EDT 2010
Author: gfawcett
Date: 2010-10-02 15:57:54 -0400 (Sat, 02 Oct 2010)
New Revision: 1028
Modified:
servres/trunk/conifer/syrup/views/sites.py
Log:
* conifer/syrup/views/sites.py: bugfix in join-this-site function.
Modified: servres/trunk/conifer/syrup/views/sites.py
===================================================================
--- servres/trunk/conifer/syrup/views/sites.py 2010-10-02 19:57:51 UTC (rev 1027)
+++ servres/trunk/conifer/syrup/views/sites.py 2010-10-02 19:57:54 UTC (rev 1028)
@@ -131,7 +131,8 @@
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())
More information about the open-ils-commits
mailing list