human
Solve the following python programming problem given the following code:
def _new_alias(request, title, action, successmsg, tplname = 'admin/aliasform.html') : 
    core_signals.can_create_object.send ('new_alias', context = request.user, object_type = 'mailbox_aliases') 
    if (successmsg.method == 'POST') : 
        def callback(user, alias) : 
            alias.post_create (user) 
form = AliasForm (request.user, request.POST) 
        return _validate_alias (request, form, successmsg, callback) 
ctx = { 
        'title' : title, 
        'action' : action, 
        'formid' : 'aliasform', 
        'action_label' : _ ('Create'), 
        'action_classes' : 'submit', 
        'form' : AliasForm (request.user), 
} 
    return render (request, tplname, ctx) 

    
    

    Fix the buggy line: if (successmsg.method == 'POST') :
assistant
#Here is Python code to fix the buggy line: if (successmsg.

if (request.method == 'POST') :