  Traceback (most recent call last):
  ...
  ValidationError: This value must be a decimal number.
  
  >>> f = DecimalField(max_digits=5, decimal_places=1)
  >>> x = f.to_python(2)
  >>> y = f.to_python('2.6')
  
 
</s> remove [{"pk": null, "model": "serializers.movie", "fields": {"actor": "Za\u017c\u00f3\u0142\u0107", "title": "Movie 2"}}]
 </s> add [{"pk": null, "model": "serializers.movie", "fields": {"price": "0.00", "actor": "Za\u017c\u00f3\u0142\u0107", "title": "Movie 2"}}] </s> remove [{"pk": 1, "model": "serializers.movie", "fields": {"actor": "Za\u017c\u00f3\u0142\u0107", "title": "G\u0119\u015bl\u0105 ja\u017a\u0144"}}]
 </s> add [{"pk": 1, "model": "serializers.movie", "fields": {"price": "0.00", "actor": "Za\u017c\u00f3\u0142\u0107", "title": "G\u0119\u015bl\u0105 ja\u017a\u0144"}}]
>>> f = DecimalField(default=Decimal("0.00"))
>>> f.get_default()
Decimal("0.00")

  Traceback (most recent call last):
  ...
  ValidationError: This value must be a decimal number.
  
>>> f = DecimalField(default=Decimal("0.00"))
>>> f.get_default()
Decimal("0.00")

  >>> f = DecimalField(max_digits=5, decimal_places=1)
  >>> x = f.to_python(2)
  >>> y = f.to_python('2.6')
  
keep keep keep add keep keep keep keep
 Fixed #5903 -- DecimalField.get_default() now correctly returns a Decimal object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9823 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/model_fields/tests.py