Replies: 5 comments
-
Could this be done by overriding the |
Beta Was this translation helpful? Give feedback.
-
I assume you mean a collection with siblings. Then the question is, why you want to remove them? Is it because the user shall not be able to add and remove siblings because Hmm, good point. I agree that in such a situation, those buttons indeed don't make sense. I think this then is a valid feature request. Is that your use-case? |
Beta Was this translation helpful? Give feedback.
-
The use case is that the records/siblings will only be added or removed by another process, and the form is only being used to present the information and allow updates to one field. |
Beta Was this translation helpful? Give feedback.
-
Overriding formset/default/collection.html and subclassing FormRenderer like so:
... "works" to remove the buttons but then django-formset.js throws an error - So back to my js hack. |
Beta Was this translation helpful? Give feedback.
-
Actually, CSS makes it simple...
Not pythonic at all though... |
Beta Was this translation helpful? Give feedback.
-
Is there a good way to remove these buttons when you only want to allow viewing or editing of existing records? For now, I'm removing the buttons with javascript, but that feels hackish.
Beta Was this translation helpful? Give feedback.
All reactions