Revision 04dcc30e snf-astakos-app/astakos/quotaholder/models.py

b/snf-astakos-app/astakos/quotaholder/models.py
80 80
                                to_field='serial',
81 81
                                related_name='provisions'   )
82 82

  
83
    holder      =   CharField(max_length=4096, db_index=True)
83
    holder      =   CharField(max_length=4096, db_index=True, null=True)
84 84
    resource    =   CharField(max_length=4096, null=False)
85 85
    quantity    =   intDecimalField()
86 86

  
......
89 89
class ProvisionLog(Model):
90 90

  
91 91
    serial              =   BigIntegerField()
92
    source              =   CharField(max_length=4096)
92
    source              =   CharField(max_length=4096, null=True)
93 93
    target              =   CharField(max_length=4096)
94 94
    name                =   CharField(max_length=4096)
95 95
    issue_time          =   CharField(max_length=4096)
96 96
    log_time            =   CharField(max_length=4096)
97 97
    resource            =   CharField(max_length=4096)
98
    source_capacity     =   intDecimalField()
99
    source_imported_min =   intDecimalField()
100
    source_imported_max =   intDecimalField()
101
    source_stock_min    =   intDecimalField()
102
    source_stock_max    =   intDecimalField()
98
    source_capacity     =   intDecimalField(null=True)
99
    source_imported_min =   intDecimalField(null=True)
100
    source_imported_max =   intDecimalField(null=True)
101
    source_stock_min    =   intDecimalField(null=True)
102
    source_stock_max    =   intDecimalField(null=True)
103 103
    target_capacity     =   intDecimalField()
104 104
    target_imported_min =   intDecimalField()
105 105
    target_imported_max =   intDecimalField()

Also available in: Unified diff