#10838: Pass user object to CommentForm (initial data)
-------------------------------------+--------------------------------------
 Reporter:  pigletto                 |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  django.contrib.comments  |     Version:  1.0       
 Keywords:  comments                 |       Stage:  Unreviewed
Has_patch:  1                        |  
-------------------------------------+--------------------------------------
 !CommentForm should check if current user is authenticated and if so,
 initial data for user's 'name' and 'email' should be filled.
 Also, it is very useful to have access to at last user object (request?)
 in form's init. This way you're able to customize it a lot, eg. hide some
 fields or mark them readonly depending on user.
 Proposed patch passes user object to !CommentForm and then initial data
 are populated with 'name' and 'email' from user object

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10838>
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