Revision fcbc5bb3 db/models.py
b/db/models.py | ||
---|---|---|
18 | 18 |
return '%s' % (str(name).strip(ganeti_prefix_id)) |
19 | 19 |
|
20 | 20 |
|
21 |
|
|
22 | 21 |
class Limit(models.Model): |
23 | 22 |
description = models.CharField(max_length=45) |
24 | 23 |
|
... | ... | |
50 | 49 |
""" |
51 | 50 |
self.credit = self.credit + self.monthly_rate |
52 | 51 |
|
53 |
# ensure that the user has not more credits than his quota
|
|
52 |
# ensure that the user has not more credits than his quota
|
|
54 | 53 |
if self.credit > self.quota: |
55 | 54 |
self.credit = self.quota |
56 | 55 |
|
Also available in: Unified diff