Return True if the model defines a natural_key() method.
(self, model)
| 231 | return None |
| 232 | |
| 233 | def _model_supports_natural_key(self, model): |
| 234 | """Return True if the model defines a natural_key() method.""" |
| 235 | try: |
| 236 | return callable(model.natural_key) |
| 237 | except AttributeError: |
| 238 | return False |
| 239 | |
| 240 | |
| 241 | class Deserializer: |
no test coverage detected