Revision a48a3a6f pithos/im/models.py

b/pithos/im/models.py
41 41
from django.conf import settings
42 42
from django.db import models
43 43

  
44
from pithos.im.interface import get_quota, set_quota
45

  
44 46

  
45 47
class User(models.Model):
46 48
    ACCOUNT_STATE = (
......
79 81
    
80 82
    @property
81 83
    def quota(self):
82
        return settings.DEFAULT_QUOTA
84
        return get_quota(self.uniq)
83 85

  
84 86
    @quota.setter
85 87
    def quota(self, value):
86
        logging.debug('Set quota to: %s', value)
88
        set_quota(self.uniq, value)
87 89
    
88 90
    def save(self, update_timestamps=True, **kwargs):
89 91
        if update_timestamps:

Also available in: Unified diff