Django

Code

Changeset 6945

Show
Ignore:
Timestamp:
12/18/07 21:40:39 (1 year ago)
Author:
adrian
Message:

Fixed comma splices in PendingDeprecationWarnings? of form_for_model and form_for_instance from [6846]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/newforms/models.py

    r6940 r6945  
    8585    takes a database Field instance and returns a form Field instance. 
    8686    """ 
    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) 
    9089    opts = model._meta 
    9190    field_list = [] 
     
    115114    instance with the given kwargs (i.e. 'initial'). 
    116115    """ 
    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) 
    120118    model = instance.__class__ 
    121119    opts = model._meta