def get_end_date(self, obj):
obj_date = getattr(obj, self.get_end_date_field())<EOL>try:<EOL><INDENT>obj_date = obj_date.date()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>return obj_date<EOL>
Returns the end date for a model instance