1. User login and barebones account section added.
This commit is contained in:
27
models/model_view_user.py
Normal file
27
models/model_view_user.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
Project: PARTS Website
|
||||
Author: Edward Middleton-Smith
|
||||
Precision And Research Technology Systems Limited
|
||||
|
||||
Technology: View Models
|
||||
Feature: User View Model
|
||||
|
||||
Description:
|
||||
Data model for user view
|
||||
"""
|
||||
|
||||
# internal
|
||||
from models.model_view_base import Model_View_Base
|
||||
# from routes import bp_home
|
||||
# external
|
||||
|
||||
class Model_View_User(Model_View_Base):
|
||||
# Attributes
|
||||
@property
|
||||
def title(self):
|
||||
return 'User'
|
||||
|
||||
def __init__(self, app, db):
|
||||
# Constructor
|
||||
super().__init__(app=app, db=db)
|
||||
|
||||
Reference in New Issue
Block a user