2👍
✅
Django admin makes extensive use of formsets, see below:
https://docs.djangoproject.com/en/1.6/topics/forms/formsets/
Regarding your query with adding the ‘+’ a la Django admin, you can acheive this with the RelatedFieldWidgetWrapper which you can find here.
👤rix
0👍
According to my experience the easiest way of adding, editing, updating corresponding(related) items on a Form on the front-end, same way like in the django-Admin, is using “django-addanother” which you can use from here. Easy, fast and clean solution on this problem and it works with Django 1.11 too. And it has good documentation, demo also.
- [Django]-Conditional Logic in django forms
- [Django]-Converting Carriage Return to HTML Break
- [Django]-Add a static html page in Django
- [Django]-Can I drop into interactive mode at a breakpoint in pycharm3
- [Django]-Django-queryset get one object per field=foo
- [Django]-Using django-taggit, is it possible to limit the tags to pre approved values?
- [Django]-Django named routes like Laravel
- [Django]-UnicodeEncodeError with attach_file on EmailMessage Django error
- [Django]-Can I use the Node.js packages along with Django?
Source:stackexchange.com