()
return redirect(url_for('public.landing'))
Adds the current user to the 'admin' group, only if there are no
    existing admins.
Adds the current user to the 'admin' group, only if there are no
    existing admins.
Adds the current user to the admin group only if there are no existing admins .
def admin_make():
    """
    Adds the current user to the 'admin' group, only if there are no
    existing admins.
    """
    if Group.query.filter_by(name='admin').count():
        # A user in the 'admin' group already exists.
        return redirect(url_for('public.landing'))

    g.user.add_group('admin')
    db.session.commit()
    return redirect(url_for('public.landing'))
def admin_make ( ) : if Group . query . filter_by ( name = 'admin' ) . count ( ) : # A user in the 'admin' group already exists. return redirect ( url_for ( 'public.landing' ) ) g . user . add_group ( 'admin' ) db . session . commit ( ) return redirect ( url_for ( 'public.landing' ) )