Changeset 6945
- Timestamp:
- 12/18/07 21:40:39 (1 year ago)
- Files:
-
- django/trunk/django/newforms/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/newforms/models.py
r6940 r6945 85 85 takes a database Field instance and returns a form Field instance. 86 86 """ 87 warn("form_for_model is deprecated, use ModelForm instead.", 88 PendingDeprecationWarning, 89 stacklevel=3) 87 warn("form_for_model is deprecated. Use ModelForm instead.", 88 PendingDeprecationWarning, stacklevel=3) 90 89 opts = model._meta 91 90 field_list = [] … … 115 114 instance with the given kwargs (i.e. 'initial'). 116 115 """ 117 warn("form_for_instance is deprecated, use ModelForm instead.", 118 PendingDeprecationWarning, 119 stacklevel=3) 116 warn("form_for_instance is deprecated. Use ModelForm instead.", 117 PendingDeprecationWarning, stacklevel=3) 120 118 model = instance.__class__ 121 119 opts = model._meta
