def _create(): vendor = self._get_vendor(oid) type_ = manage.NetboxType( vendor=vendor, name=str(oid), sysobjectid=str(oid).strip("."), description=description, ) type_.save() return type_
class Meta(object): model = manage.NetboxType() fields = '__all__'
class Meta(object): model = manage.NetboxType()