#10838: Pass user object to CommentForm (initial data)
----------------------------------------------+-----------------------------
          Reporter:  pigletto                 |         Owner:  nobody  
            Status:  new                      |     Milestone:          
         Component:  django.contrib.comments  |       Version:  SVN     
        Resolution:                           |      Keywords:  comments
             Stage:  Unreviewed               |     Has_patch:  1       
        Needs_docs:  0                        |   Needs_tests:  0       
Needs_better_patch:  0                        |  
----------------------------------------------+-----------------------------
Changes (by pigletto):

 * cc: pigle...@gmail.com (added)

Comment:

 Patch from thejaswi_puthraya only adds username and e-mail to inital_data
 while my original idea was also to pass user object to form's __init__
 function. This way it is possible to customize form, eg. by hiding some
 fields for specific users.
 Backward compatibility is only broken if one has own comment form with
 overriden __init__ function that doesn't accept **kwargs.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10838#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to