~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlprofile/forms.py

  • Committer: Holger Rapp
  • Date: 2010-10-31 15:09:11 UTC
  • Revision ID: sirver@gmx.de-20101031150911-xv3rmfbpatglt9lq
removed a lot of prints

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    def __init__(self, *args, **kwargs):
28
28
        instance = kwargs.pop("instance")
29
29
 
30
 
        print "instance: %s, kwargs: %s" % (instance, kwargs)
31
30
        super(EditProfileForm, self).__init__(instance=instance, *args,**kwargs)
32
31
 
33
32
        self.fields['email'].initial = instance.user.email
45
44
 
46
45
        u = self.instance.user
47
46
        u.email = self.cleaned_data['email']
48
 
        print "u.email: %s" % (u.email)
49
47
 
50
48
        u.save()
51
49