flask-admin Questions

1

Solved

I have a flask project, and I am getting started learning the flask-admin module. SqlAlchemy schema for the required tables. import datetime import sqlalchemy from sqlalchemy.ext.declarative im...
Fer asked 13/11, 2015 at 17:5

1

Solved

I have a class-based Admin view: class All_RDPs(BaseView): @expose('/') def index(self): return 'ok1' @expose('/test') def testindex(self): return 'ok2' which is registered with Flask-Admi...
Chlores asked 11/11, 2015 at 12:57

1

Solved

My SQLAlchemy model has a String field that I would like to limit to a few choices. I am wondering how I would be able to create a dropdown for this field in the Flask-Admin interface that would ...
Trivalent asked 19/8, 2015 at 22:55

1

Solved

In a Flask app using Flask Admin I would like to be able to define different form fields in the Edit section of a ModelView than those in the Create section. The form_columns setting applies to bo...
Eckenrode asked 3/8, 2015 at 22:14

0

I'm using Flask-Admin and I want to be able to update many fields at once from the list view. It seemed like what I'm looking for is a custom action. I was able to make it work, but I suspect not ...
Geibel asked 2/7, 2015 at 14:36

1

Solved

My user is modeled in SQLAlchemy as: class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) url_pic = Column(String(50), nullable=False) (...) And I want to add the...
Pun asked 9/10, 2013 at 14:15

1

Solved

I would like to display only paid orders in my Flask-Admin model list view. Here is models.py: class Order(db.Model): id = db.Column(db.Integer, primary_key=True) amount = db.Column(db.Integer)...
Darrondarrow asked 13/10, 2014 at 22:18

3

Solved

How do I update an HSTORE field with Flask-Admin? The regular ModelView doesn't show the HSTORE field in Edit view. It shows nothing. No control at all. In list view, it shows a column with data i...
Atonality asked 22/9, 2013 at 17:24

1

Solved

I'm trying to render a template that contains a DatePicker, but I'm getting a 500 error when I try. For my the code is correct, but it seems that something is failing or I'm not understanding corre...
Inurbane asked 26/9, 2014 at 10:43

1

I'm trying to extend a one-to-many field in my Flask-Admin app to use a custom Select2 Field. The javascript code for the field looks something like this: function format(data) { if (!data.id) re...
Womack asked 10/2, 2014 at 23:36

1

Solved

I have some fields in my models which I specifically want to exclude from my ModelView. Reference https://flask-admin.readthedocs.org/en/latest/api/mod_model/, I attempted to exclude those specifi...
Nickolai asked 24/4, 2014 at 4:34

1

I'm studying Flask-Admin combined with PeeWee Backend ModelView (but my question may be applied to SQLAlchemy backend too), and there are two things I could not find in the docs or examples: (1). ...
Lusatian asked 8/4, 2014 at 20:5

2

Solved

Preconditions: I'm new to Python and to Flask-Admin in particular. I created a simple test service, which has MondoDB, keeping the data with relationship of 'one-to-one' kind. employeeName -> s...
Dolly asked 15/1, 2014 at 14:27

2

Solved

I'm trying to extend my template with 'master.html' template of Flask-Admin like this: {% extends 'admin/master.html' %} {% block body %} Hello!!! {% endblock %} And I get error: File "/usr/lo...
Kermitkermy asked 31/7, 2013 at 13:17

1

I'm trying to customize my Admin views with Flask and Flask-SuperAdmin, however, the index view and subviews are apparently not using the same is_accessible method: EDIT: I managed to figure out w...
Afton asked 11/7, 2013 at 0:40

1

Solved

I'm developing a web-app using Flask and pyMongo, and I've recently started to integrate the Flask-Admin module (1.0.4), given the fresh mongodb support. All is smooth and fine when using ModelVie...
Grevera asked 15/1, 2013 at 23:36

© 2022 - 2024 — McMap. All rights reserved.