From 4b3cfd8d811d3c7c8e6b6091598c86bcfc1da0de Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Thu, 11 Nov 2010 21:52:29 +0100 Subject: [PATCH] fix user registration not working due to MumbleUser.owner field not being set --- pyweb/mumble/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyweb/mumble/forms.py b/pyweb/mumble/forms.py index 2e27976..f53b1f0 100644 --- a/pyweb/mumble/forms.py +++ b/pyweb/mumble/forms.py @@ -224,6 +224,7 @@ class MumbleUserForm( ModelForm ): return True def EXT_validate( self, request ): + self.instance.owner = request.user if "serverid" in request.POST: try: self.server = Mumble.objects.get( id=int(request.POST['serverid']) )