Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize add/edit page #44

Closed
nmzgnv opened this issue Dec 25, 2021 · 5 comments
Closed

Customize add/edit page #44

nmzgnv opened this issue Dec 25, 2021 · 5 comments

Comments

@nmzgnv
Copy link

nmzgnv commented Dec 25, 2021

How can I customize the edit page? Id field available for editing, no default values for fields.
Lib version: 0.2.5

Simple model:

class User(db.Model):
    __tablename__ = 'users'

    pk = Column(db.String(), primary_key=True, unique=True)

    telegram_id = Column(Integer())
    nickname = Column(String(length=33), default='-')

    def __str__(self):
        return f'{self.nickname} - {self.telegram_id}'

image

@nmzgnv
Copy link
Author

nmzgnv commented Dec 25, 2021

Is it available to hide field?

@xnuinside
Copy link
Owner

@nmzgnv hi, I did not update library a long time - it's not available now, but it's easy to add, I can add to config some field like 'hide_columns' that expect list of Model.column_name that will be hided. It is will be ok? I can add it quickly.

@nmzgnv
Copy link
Author

nmzgnv commented Dec 25, 2021

@xnuinside It will be great, I can help :0

@xnuinside
Copy link
Owner

@xnuinside
Copy link
Owner

@nmzgnv if needed something more - feel free to open new issue or PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants