Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>from django.contrib.auth.models import User
- >>>import relationships
- >>>jp=User.objects.get(username='jainesh')
- >>>rel=jp.relationships.add(muls)
- Traceback (most recent call last):
- File "<console>", line 1, in <module>
- AttributeError: 'User' object has no attribute 'relationships'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement