change definition of Asphalt as material
This commit is contained in:
@@ -6,7 +6,7 @@ from mongoengine import *
|
|||||||
|
|
||||||
from paveit.helper import fetch_recursive, mongo_to_dict
|
from paveit.helper import fetch_recursive, mongo_to_dict
|
||||||
|
|
||||||
from .enumeration import BitumenCategoryEnum
|
from .enumeration import AsphaltCategoryEnum, BitumenCategoryEnum
|
||||||
from .norm_documents import (
|
from .norm_documents import (
|
||||||
NormDocumentAggregate,
|
NormDocumentAggregate,
|
||||||
NormDocumentAsphalt,
|
NormDocumentAsphalt,
|
||||||
@@ -62,14 +62,14 @@ class Material(Document):
|
|||||||
|
|
||||||
|
|
||||||
class Asphalt(Material):
|
class Asphalt(Material):
|
||||||
norm = LazyReferenceField(NormDocumentAsphalt, required=True)
|
|
||||||
|
|
||||||
name = StringField()
|
name = StringField()
|
||||||
material = StringField()
|
producer = StringField()
|
||||||
bitumen = StringField(required=False)
|
batch_number = StringField()
|
||||||
|
|
||||||
young_modulus = DictField()
|
norm = LazyReferenceField(NormDocumentAsphalt, required=True)
|
||||||
fatigue = DictField()
|
|
||||||
|
limits = LazyReferenceField(EnumerateBase)
|
||||||
|
|
||||||
# Bitumen
|
# Bitumen
|
||||||
class Bitumen(Material):
|
class Bitumen(Material):
|
||||||
@@ -126,8 +126,6 @@ class Aggregate(Material):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Dummy(Material):
|
class Dummy(Material):
|
||||||
|
|
||||||
name = StringField()
|
name = StringField()
|
||||||
|
|||||||
Reference in New Issue
Block a user