old_contents: #
  # EconomicResource:
  #
  
  import graphene
  from graphene_django.types import DjangoObjectType
  
  import valuenetwork.api.types as types
  from valuenetwork.valueaccounting.models import EconomicResource as EconomicResourceProxy
  from valuenetwork.api.models import QuantityValue as QuantityValueProxy
  
  class EconomicResourceCategory(graphene.Enum):
      NONE = None
      CURRENCY = "currency"
      INVENTORY = "inventory"
  
  class EconomicResource(DjangoObjectType):  #graphene.Interface):
      resource_type = graphene.String(source='resource_type_name') # need to figure this out with VF gang
      tracking_identifier = graphene.String(source='tracking_identifier')
      image = graphene.String(source='image')
      #numeric_value = graphene.Float(source='numeric_value') #need to implement as quantity-value with unit
      #unit = graphene.String(source='unit')
      current_quantity = graphene.Field(lambda: types.Agent) 
      note = graphene.String(source='note')
      category = graphene.String(source='category')
  
      class Meta:
          model = EconomicResourceProxy
          only_fields = ('id')
  
      def resolve_current_quantity(self, args, *rargs):
          return None #QuantityValueProxy(numeric_value=self.quantity, unit=self.unit)
  
new_contents: #
  # EconomicResource:
  #
  
  import graphene
  from graphene_django.types import DjangoObjectType
  
  import valuenetwork.api.types as types
  from valuenetwork.valueaccounting.models import EconomicResource as EconomicResourceProxy
  #from valuenetwork.api.models import QuantityValue as QuantityValueProxy
  from valuenetwork.api.types.QuantityValue import QuantityValue
  
  class EconomicResourceCategory(graphene.Enum):
      NONE = None
      CURRENCY = "currency"
      INVENTORY = "inventory"
  
  class EconomicResource(DjangoObjectType):  #graphene.Interface):
      resource_type = graphene.String(source='resource_type_name') # need to figure this out with VF gang
      tracking_identifier = graphene.String(source='tracking_identifier')
      image = graphene.String(source='image')
      #numeric_value = graphene.Float(source='numeric_value') #need to implement as quantity-value with unit
      #unit = graphene.String(source='unit')
      current_quantity = graphene.Field(lambda: QuantityValue)
      note = graphene.String(source='note')
      category = graphene.String(source='category')
  
      class Meta:
          model = EconomicResourceProxy
          only_fields = ('id')
  
      def resolve_current_quantity(self, args, *rargs):
          return QuantityValueProxy(numeric_value=self.quantity, unit=self.unit)
  
subject: change QuantityValue field in EconomicResourceCategory so it is a type, not a module or class