How to initialize the email form with from_email address which is the current user's email address in django. I am using post-office application and wish to populate the from email address. How can the initial value be set as:
def __init__(self,*args,**kwargs):
self.base_fields['from_email'].initial = 'hi@s.com'
super(EmailForm, self).__init__(*args, **kwargs)
But the email id should vary dynamically. The request object is available in the changelist_view for the EmailAdmin and not in the ModelForm to take advantage of.