Exemplo n.º 1
0
	def insert_member(cls):
		ip = '127.0.0.1'
		user1 = MotssUser.create('test002', '123456', '*****@*****.**', ip)
		user2 = MotssUser.create('test003', '123456', '*****@*****.**', ip)
		print user1
		print user2
		MotssUser.objects.bulk_create([user1, user2])
Exemplo n.º 2
0
Arquivo: task.py Projeto: kingmk/motss
def insert_user(username, password, email, ip):
	user = MotssUser.create(username, password, email, ip)
	user.save()
	return user