Skip to content

Commit

Permalink
Fixed references to user.get_email() that should be user.email
Browse files Browse the repository at this point in the history
  • Loading branch information
melwil committed Jan 23, 2014
1 parent 3834127 commit 2062db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/feedback/mommy.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_users(feedback):

@staticmethod
def get_user_mails(not_responded):
return [str(user.get_email()) for user in not_responded]
return [user.email for user in not_responded]

@staticmethod
def get_link(feedback):
Expand Down
4 changes: 2 additions & 2 deletions apps/feedback/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ def setUp(self):
def test_attendees(self):
feedback_relation = FeedbackRelation.objects.get(pk=1)
message = FeedbackMail.generate_message(feedback_relation)
user_mails = [str(user.get_email()) for user in User.objects.all()]
user_mails = [user.email for user in User.objects.all()]

self.assertEqual(set(message.attended_mails), set(user_mails))

user1 = User.objects.get(pk=1)
feedback_relation.answered = [user1]

message = FeedbackMail.generate_message(feedback_relation)
user_mails = [str(user.get_email()) for user in [User.objects.get(pk=2)]]
user_mails = [user.email for user in [User.objects.get(pk=2)]]
self.assertEqual(set(message.attended_mails), set(user_mails))

feedback_relation = FeedbackRelation.objects.get(pk=2)
Expand Down

0 comments on commit 2062db2

Please sign in to comment.