Changeset 8854 for django/trunk/tests/modeltests/model_forms/models.py
- Timestamp:
- 09/02/08 09:20:11 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/model_forms/models.py
r8842 r8854 1193 1193 {'__all__': [u'Price with this Price and Quantity already exists.']} 1194 1194 1195 >>> class PriceForm(ModelForm): 1196 ... class Meta: 1197 ... model = Price 1198 ... exclude = ('quantity',) 1199 >>> form = PriceForm({'price': '6.00'}) 1200 >>> form.is_valid() 1201 True 1202 1195 1203 # Choices on CharField and IntegerField 1196 1204 >>> class ArticleForm(ModelForm):
