New website focusing on ERP services.
This commit is contained in:
@@ -14,18 +14,27 @@ Data model for contact view
|
||||
from models.model_view_base import Model_View_Base
|
||||
# from routes import bp_home
|
||||
from lib import argument_validation as av
|
||||
from forms.forms import Form_Contact
|
||||
from forms.contact import Form_Contact
|
||||
# external
|
||||
from flask_wtf import FlaskForm
|
||||
from abc import abstractproperty
|
||||
from pydantic import BaseModel
|
||||
from typing import ClassVar
|
||||
|
||||
class Model_View_Contact(Model_View_Base):
|
||||
# Attributes
|
||||
ID_EMAIL: str = 'email'
|
||||
ID_MESSAGE: str = 'msg'
|
||||
ID_NAME: str = 'name'
|
||||
|
||||
FLAG_COMPANY_NAME: ClassVar[str] = 'company_name'
|
||||
FLAG_CONTACT_NAME: ClassVar[str] = 'contact_name'
|
||||
FLAG_RECEIVE_MARKETING: ClassVar[str] = 'receive_marketing'
|
||||
"""
|
||||
ID_EMAIL: ClassVar[str] = 'email'
|
||||
ID_COMPANY_NAME: ClassVar[str] = 'company_name'
|
||||
ID_CONTACT_NAME: ClassVar[str] = 'contact_name'
|
||||
ID_MESSAGE: ClassVar[str] = 'msg'
|
||||
ID_RECEIVE_MARKETING: ClassVar[str] = 'receive_marketing'
|
||||
ID_NAME: ClassVar[str] = 'name'
|
||||
"""
|
||||
|
||||
form_contact: Form_Contact
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user