Changeset - cee36ad983e5
[Not reviewed]
0 1 0
Brian Rosner - 12 years ago 2012-08-22 21:56:22
brosner@gmail.com
modified copy for invite form on team to read more clearly
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
symposion/teams/forms.py
Show inline comments
 
from django import forms
 

	
 
from django.utils.html import escape
 
from django.utils.safestring import mark_safe
 

	
 
from django.contrib.auth.models import User
 

	
 
from symposion.teams.models import Membership
...
 
@@ -7,7 +10,7 @@ from symposion.teams.models import Membership
 

	
 
class TeamInvitationForm(forms.Form):
 
    
 
    email = forms.EmailField(help_text="email address must be that of a user on the site")
 
    email = forms.EmailField(help_text="email address must be that of an account on this conference site")
 
    
 
    def __init__(self, *args, **kwargs):
 
        self.team = kwargs.pop("team")
...
 
@@ -25,7 +28,7 @@ class TeamInvitationForm(forms.Form):
 
        except User.DoesNotExist:
 
            # eventually we can invite them but for now assume they are
 
            # already on the site
 
            raise forms.ValidationError("no known user with email address %s" % email)
 
            raise forms.ValidationError(mark_safe("no account with email address <b>%s</b> found on this conference site" % escape(email)))
 
        
 
        state = self.team.get_state_for_user(user)
 
        
0 comments (0 inline, 0 general)