Browse Source

fix user registration not working due to MumbleUser.owner field not being set

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
4b3cfd8d81
  1. 1
      pyweb/mumble/forms.py

1
pyweb/mumble/forms.py

@ -224,6 +224,7 @@ class MumbleUserForm( ModelForm ):
return True return True
def EXT_validate( self, request ): def EXT_validate( self, request ):
self.instance.owner = request.user
if "serverid" in request.POST: if "serverid" in request.POST:
try: try:
self.server = Mumble.objects.get( id=int(request.POST['serverid']) ) self.server = Mumble.objects.get( id=int(request.POST['serverid']) )

Loading…
Cancel
Save