Author: floguy
Date: Sun Sep 21 01:29:08 2008
New Revision: 918
Modified:
trunk/local_apps/projects/forms.py
Log:
Fixed a small bug in project member inviting.
Modified: trunk/local_apps/projects/forms.py
==============================================================================
--- trunk/local_apps/projects/forms.py (original)
+++ trunk/local_apps/projects/forms.py Sun Sep 21 01:29:08 2008
@@ -92,7 +92,7 @@
except User.DoesNotExist:
raise forms.ValidationError(_("There is no user with this
username."))
- if ProjectMember.objects.filter(project=project,
user=user).count() > 0:
+ if ProjectMember.objects.filter(project=self.project,
user=user).count() > 0:
raise forms.ValidationError(_("User is already a member of
this project."))
return self.cleaned_data['recipient']
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---