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 .enumeration import BitumenCategoryEnum
|
||||
from .enumeration import AsphaltCategoryEnum, BitumenCategoryEnum
|
||||
from .norm_documents import (
|
||||
NormDocumentAggregate,
|
||||
NormDocumentAsphalt,
|
||||
@@ -62,14 +62,14 @@ class Material(Document):
|
||||
|
||||
|
||||
class Asphalt(Material):
|
||||
norm = LazyReferenceField(NormDocumentAsphalt, required=True)
|
||||
|
||||
name = StringField()
|
||||
material = StringField()
|
||||
bitumen = StringField(required=False)
|
||||
producer = StringField()
|
||||
batch_number = StringField()
|
||||
|
||||
young_modulus = DictField()
|
||||
fatigue = DictField()
|
||||
norm = LazyReferenceField(NormDocumentAsphalt, required=True)
|
||||
|
||||
limits = LazyReferenceField(EnumerateBase)
|
||||
|
||||
# Bitumen
|
||||
class Bitumen(Material):
|
||||
@@ -126,8 +126,6 @@ class Aggregate(Material):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Dummy(Material):
|
||||
|
||||
name = StringField()
|
||||
|
||||
Reference in New Issue
Block a user