Commit 855d9f40 authored by Lucas Serrano's avatar Lucas Serrano
Browse files

[expenses/models] Some comments

parent 63b2b127
......@@ -54,11 +54,14 @@ class Bill(models.Model):
def clean(self, *args, **kwargs):
Integrity check and hack for empty form (self.atoms.all() == [])
except ValidationError:
if self.atoms.all():
raise # Raise the last exception
def check_integrity(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment