Revision: 51749
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 3, 2011 21:49 by magicrebirth
Initial Code
role, created = UserToUserRole.objects.get_or_create( from_user=current_user, to_user=user, role='follow')
Initial URL
http://stackoverflow.com/questions/1821176/django-check-whether-an-object-already-exists-before-adding
Initial Description
Initial Title
Django: check whether an object already exists before adding
Initial Tags
django
Initial Language
Django