1 2010-08-12 22:51

django-friends app

编辑 文章分类:Python编程
django-friends

地址:http://wiki.github.com/jtauber/django-friends/

api doc
Welcome to the django-friends wiki!

I haven’t worked with friends in a while. I’m just throwing this documentation here because I created some for my use. Please check it!

Model Contact

Friendship:
objects:
friends_for_user(user) — this returns the friends for ‘user’
are_friends(user1, user2) — checks if ‘user1’ and ‘user2’ are friends
remove(user1,user2) — removes friendships between ‘user1’ and ‘user2’

friend_set_for(user) —returns a set of user objects who are friends with ‘user’

JoinInvitation:
objects:
send_invitation(from_user, to_email, message) — sends an email invitation, from_user is the user object, to_email is the email, and message is the actual invitation message.
accept(new_user) — called when new user accepts a join invitation.

FriendshipInvitation:
objects:
invitations()

accept()
decline()

大梦方觉晓!

2 2010-08-12 22:51

我要吧这里变成一个 python django交流基地 不反对吧! 哈哈

大梦方觉晓!

3 2011-11-01 03:48

bruce:

我要吧这里变成一个 python django交流基地 44444不反对吧! 哈哈


2787454657

可以不写的

4 2011-11-01 03:50

*855555

可以不写的

5 2011-12-01 12:03

多交流,多成长,感觉人气有点少,qq群要活跃些,