Revision 41e92ef2 snf-astakos-app/astakos/im/models.py

b/snf-astakos-app/astakos/im/models.py
64 64
import astakos.im.messages as astakos_messages
65 65
from synnefo.lib.ordereddict import OrderedDict
66 66

  
67
from snf_django.lib.db.fields import intDecimalField
68 67
from synnefo.util.text import uenc, udec
69 68
from synnefo.util import units
70 69
from astakos.im import presentation
......
233 232
    service_type = models.CharField(_('Type'), max_length=255)
234 233
    service_origin = models.CharField(max_length=255, db_index=True)
235 234
    unit = models.CharField(_('Unit'), null=True, max_length=255)
236
    uplimit = intDecimalField(default=0)
235
    uplimit = models.BigIntegerField(default=0)
237 236
    allow_in_projects = models.BooleanField(default=True)
238 237

  
239 238
    def __str__(self):
......
1021 1020

  
1022 1021

  
1023 1022
class AstakosUserQuota(models.Model):
1024
    capacity = intDecimalField()
1023
    capacity = models.BigIntegerField()
1025 1024
    resource = models.ForeignKey(Resource)
1026 1025
    user = models.ForeignKey(AstakosUser)
1027 1026

  
......
1493 1492
    resource = models.ForeignKey(Resource)
1494 1493
    project_application = models.ForeignKey(ProjectApplication,
1495 1494
                                            null=True)
1496
    project_capacity = intDecimalField(null=True)
1497
    member_capacity = intDecimalField(default=0)
1495
    project_capacity = models.BigIntegerField(null=True)
1496
    member_capacity = models.BigIntegerField(default=0)
1498 1497

  
1499 1498
    objects = ProjectResourceGrantManager()
1500 1499

  

Also available in: Unified diff