WMGZON/models/users/admin.py

16 lines
414 B
Python
Raw Normal View History

from .user import User
2024-01-21 22:06:06 +00:00
class Admin(User):
'''
2024-01-02 22:22:14 +00:00
Class constructor to instatiate an admin object
2024-01-02 22:22:14 +00:00
No additional properties are assigned to the admin
'''
2024-01-21 22:06:06 +00:00
def __init__(self, username: str, password: str, firstname: str,
2024-01-09 22:20:32 +00:00
lastname: str, email: str, phone: str):
2024-01-02 22:22:14 +00:00
super().__init__(
2024-01-09 22:20:32 +00:00
username, password, firstname, lastname, email, phone, "Admin"
2024-01-02 22:22:14 +00:00
)