tessl install tessl/pypi-flask-admin@1.6.0Simple and extensible admin interface framework for Flask
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.3x
Baseline
Agent success rate without this tile
66%
Create a simple product management admin interface for a Flask application that supports multiple languages (English and Spanish). The interface should allow users to view and manage products, with all UI elements properly translated based on the user's language preference.
Build a Flask-Admin interface with the following features:
Product Model: A simple product model with the following fields:
Admin Interface: Create an admin view for the Product model with:
Language Support: The application should support:
Test Implementation: Write tests to verify:
@generates
from flask import Flask
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from flask_sqlalchemy import SQLAlchemy
class ProductView(ModelView):
"""
Admin view for Product model with internationalization support.
Should configure column_labels with translated strings for supported languages.
Should use appropriate translation functions to enable language switching.
"""
pass
def create_admin_interface(app: Flask, db: SQLAlchemy) -> Admin:
"""
Create and configure the Flask-Admin interface with i18n support.
Args:
app: Flask application instance
db: SQLAlchemy database instance
Returns:
Configured Admin instance with ProductView registered
"""
passProvides admin interface framework with internationalization support.
Provides internationalization and localization support for Flask applications.
Provides SQLAlchemy integration for Flask.