'Determine where to go next after creating a new household'

@staticmethod
def household_create_next(r):

    post_vars = r.post_vars
    next_vars = S3Method._remove_filters(r.get_vars)
    next_vars.pop('w', None)
    follow_up = (('followup' in post_vars) and post_vars['followup'])
    if (r.function == 'area'):
        if follow_up:
            return URL(f='household', args=['[id]', 'person'], vars=next_vars)
        else:
            return r.url(method='', component='household', vars=next_vars)
    elif follow_up:
        return r.url(id='[id]', component='person', method='', vars=next_vars)
    else:
        return r.url(method='summary', id='', vars=next_vars)
