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