Beispiel #1
0
 def to_internal_value(self, license_id):
     node_license = NodeLicense.load(license_id)
     if node_license:
         return {'license_type': node_license}
     raise exceptions.NotFound('Unable to find specified license.')
Beispiel #2
0
 def to_internal_value(self, license_id):
     node_license = NodeLicense.load(license_id)
     return {'license_type': node_license}
Beispiel #3
0
 def to_internal_value(self, license_id):
     node_license = NodeLicense.load(license_id)
     return {'license_type': node_license}