def account(request, template_name='youraliss/account.html'): object = get_one_or_404(Account, local_id=str(request.user.id)) return account_edit(request, object.id, template_name, next='youraliss')
def user_edit(request, object_id, template_name='enginecab/user_edit.html'): object = get_one_or_404(Account, id=ObjectId(object_id)) return account_edit(request, object.id, template_name, next='cab_user_detail')