diff --git a/money/contrib/django/models/fields.py b/money/contrib/django/models/fields.py index 8e84215..20415db 100644 --- a/money/contrib/django/models/fields.py +++ b/money/contrib/django/models/fields.py @@ -58,6 +58,8 @@ def _set_values(self, obj, amount, currency): obj.__dict__[self.field.currency_field_name] = currency def __get__(self, obj, *args): + if obj is None: + return self amount, currency = self._get_values(obj) if amount is None: return None