I want to check if an attribute from a class is None. The attribute itself depends on some cases and is stored in a string "attribute_name". How can I check of the attribute is None? Something like:
hasattr(object, attribute_name)
but then not checking of the attribute exists in the model but if it has a value