예제 #1
0
def load_relations():
    UserRelation.create_with_usernames('xyz', 'ref')
    UserRelation.create_with_usernames('wakazawaka', 'ref')
    UserRelation.create_with_usernames('zizicu1', 'zizicu2')
    UserRelation.create_with_usernames('wakazawaka', 'zizicu1')
    UserRelation.create_with_usernames('wakazawaka', 'zizicu2')
    UserRelation.create_with_usernames('wakazawaka', 'mef')
    UserRelation.create_with_usernames('zizicu1', 'mef')
    UserRelation.create_with_usernames('zizicu2', 'mef')
예제 #2
0
def load_relations2():
    UserRelation.create_with_usernames('mef', 'ionp')
    UserRelation.create_with_usernames('mef', 'geop')
    UserRelation.create_with_usernames('mef', 'ref')
    UserRelation.create_with_usernames('wakazawaka', 'mef')
    UserRelation.create_with_usernames('zizicu1', 'mef')
예제 #3
0
파일: common.py 프로젝트: mateifl/djsocial
 def create_relations(self ):
     UserRelation.create_with_usernames("user1", "user2")
     UserRelation.create_with_usernames("user1", "user3")
     UserRelation.create_with_usernames("user1", "user4")