Closed rmk135 closed 8 years ago
The idea is to implement model.get(field_name, default=None) method, that has similar behaviour as dict.get() method.
model.get(field_name, default=None)
dict.get()
Note: if there is no field with such name, AttributeError exception should be raised.
AttributeError
The idea is to implement
model.get(field_name, default=None)
method, that has similar behaviour asdict.get()
method.Note: if there is no field with such name,
AttributeError
exception should be raised.