Browse Source

if linking accounts, don't update Murmur. see #56

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
f3405dcbc7
  1. 8
      pyweb/mumble/views.py

8
pyweb/mumble/views.py

@ -103,12 +103,10 @@ def show( request, server ):
regform = unregged_user_form( request.POST );
regform.server = srv;
if regform.is_valid():
# TODO: Check if LinkAcc is True, if yes:
# find MumbleUser with mumbleid=regform.mumbleid,
# if not exists create, save().
model = regform.save( commit=False );
model.owner = request.user;
model.save();
model.owner = request.user;
# If we're linking accounts, the change is local only.
model.save( dontConfigureMurmur=( "linkacc" in regform.data ) );
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) );
else:
displayTab = 1;

Loading…
Cancel
Save