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
Default value presentation in select widgets and other relation fields #226
Comments
Hi @yevheniidehtiar You can see in the documentation http://www.weppy.org/docs/1.2/validations -> Inclusion in database sets |
Thank you. And what's about multiple select for many2many fields. |
@yevheniidehtiar, I'm not sure, but I think with 'multiple': True it could work |
@yevheniidehtiar you might want to add the class Category(Model):
format = "%(name)s" |
How about multiple select fields for relation. Can you give example, if it's possible? |
@yevheniidehtiar I'm sorry, but weppy doesn't provide any "ready to go" form for many to many relations. You should create a custom form and consequent logics for that. |
@gi0baro I understand, but I found |
@yevheniidehtiar No, multiple is used for list fields. I'm sorry, but it's totally unplanned right now to have such functionality in weppy. If you want such functions you should implements all the logics to save related models in the route, and if you manage to do it with some "reusable logic", I'm open to pull requests and further discussions :) |
Hi! It's not good in view, when I see IDs instead names on relation fields in form.
`
class Category(Model):
`
Field parent in form is select widget and values looking like with 1,2. But I want to see the name of category. I found 'representation' feature in docs, but example in docs is not fully understandably. Can you help me with it. Please
The text was updated successfully, but these errors were encountered: