initial commit for web part some function add to models.py