Code

Changes between Version 18 and Version 19 of DjangoCheatSheet


Ignore:
Timestamp:
11/29/07 12:38:36 (6 years ago)
Author:
Richard D. Worth <rdworth@…>
Comment:

changed FloatField to DecimalField

Legend:

Unmodified
Added
Removed
Modified
  • DjangoCheatSheet

    v18 v19  
    4343    user = models.ForeignKey (User)  
    4444    case_number = models.IntegerField() 
    45     dollar_amount = models.FloatField('Cost (in dollars)', max_digits=10, decimal_places=2) 
     45    dollar_amount = models.DecimalField('Cost (in dollars)', max_digits=10, decimal_places=2) 
    4646}}} 
    4747see: [http://www.djangoproject.com/documentation/model_api/ model api], [http://www.djangoproject.com/documentation/models/ model examples]