Models
nautobot_data_validation_engine.models
¶
Django models.
MinMaxValidationRule
¶
Bases: ValidationRule
A type of validation rule that applies min/max constraints to a given numeric model field.
Source code in nautobot_data_validation_engine/models.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
|
clean()
¶
Ensure field is valid for the model and has not been blacklisted.
Source code in nautobot_data_validation_engine/models.py
get_absolute_url()
¶
to_csv()
¶
Return tuple representing the instance, which this used for CSV export.
Source code in nautobot_data_validation_engine/models.py
RegularExpressionValidationRule
¶
Bases: ValidationRule
A type of validation rule that applies a regular expression to a given model field.
Source code in nautobot_data_validation_engine/models.py
clean()
¶
Ensure field is valid for the model and has not been blacklisted.
Source code in nautobot_data_validation_engine/models.py
get_absolute_url()
¶
to_csv()
¶
Return tuple representing the instance, which this used for CSV export.
Source code in nautobot_data_validation_engine/models.py
ValidationRule
¶
Bases: BaseModel
, ChangeLoggedModel
Base model for all validation engine rule models
Source code in nautobot_data_validation_engine/models.py
ValidationRuleManager
¶
Bases: RestrictedQuerySet
Adds a helper method for getting all active instances for a given content type.
Source code in nautobot_data_validation_engine/models.py
get_for_model(content_type)
¶
Given a content type string (
Source code in nautobot_data_validation_engine/models.py
validate_regex(value)
¶
Checks that the value is a valid regular expression.
Don't confuse this with RegexValidator, which uses a regex to validate a value.