On Sat, Nov 23, 2013 at 2:49 PM, Simone Dalla <simoda...@gmail.com> wrote:
> the correct code should be
>
> ...
> self.userprofile = UserProfile.objects.filter(user_id =1)
> self.userprofile.update(first_name = "Harjot")
> ...
> self.assertEqual(self.userprofile.user_id, 1)

New Error.
Traceback (most recent call last):
  File "/home/harjot/Automation/../Automation/tcc/tests.py", line 22,
in test_profile
    self.assertEqual(self.userprofile.user_id, 1)
AttributeError: 'QuerySet' object has no attribute 'user_id'


-- 
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB0GQhCKr7qRnDNdHmgx%2BwksdRgwRC9O6TT3whXyLn-igthhSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to