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

Inline Formset support ! #165

Open
infosrabah opened this issue Apr 13, 2021 · 7 comments
Open

Inline Formset support ! #165

infosrabah opened this issue Apr 13, 2021 · 7 comments
Labels
enhancement New feature or request low priority

Comments

@infosrabah
Copy link

infosrabah commented Apr 13, 2021

Hi Uros,

I know that Formsets is not supported yet in this project as you said before in a issue post. since it has a complex logic..

I 've been struglling to make it work, but using just a "CreateView" from "django.views.generic" not your "BSModalCreateView" because it display the error "TypeError: init() got an unexpected keyword argument 'request'"

And my form is "ModelForm" not "BSModalModelForm" but kept your Js call to a modal bootstrap (passed the last week, tweaking, debugging. ... .... the far that I got is works ok but it saved 2 instances of the object but didn't know how to make it work well, :(

I know you don't have enough time, but to give you a hint and gain time, here's the best project online on that matter that I'm based on : https://github.com/adandan01/mybook

Is there a chance to see the project support Formsets !?, are you planning to integrate it.

We relly wish for the project to implement formsets.

It's a the missing piece right now for this wonderful project.

Thank you.

@trco trco added the enhancement New feature or request label Apr 16, 2021
@trco
Copy link
Owner

trco commented Apr 16, 2021

@infosrabah I agree that this would be a great addition to this package but unfortunately this is totally not doable from my side at the moment and I doubt it will be in the near future. I'm too busy with my job and other side projects. Maybe this year, maybe in the next, maybe never...who knows.

I would say that the project you shared includes only the basic usage of formsets and has nothing to do with ajax submission from modals, unless I'm missing something.

@infosrabah
Copy link
Author

infosrabah commented Apr 18, 2021

You said :
'''
I would say that the project you shared includes only the basic usage of formsets and has nothing to do with ajax submission from modals, unless I'm missing something.
'''

This may be a key for, to search in a specific direction, and it may be a solution for my problem, could you please explain clearly what you meant in the above message, I'm confuse, please ?

You mean that it could be doable and your package (Ajax sub modal) has nothing to do with the problem ?, could you be more specific Uros, Thank you

@infosrabah
Copy link
Author

@trco
Copy link
Owner

trco commented Apr 22, 2021

@infosrabah I meant that the project you shared as an example is nothing more than the basic usage of formsets in Django and has nothing to do with ajax submitted formsets. At least I didn't find any relation. As already said I'm not planning to support this in near future, since it's quite some research and work to be done. I also can't provide you the assistance with your personal projects, unless you find a bug in existing package.

@infosrabah
Copy link
Author

Got you,

@leonardodepaula
Copy link

Did you manage to find a solution @infosrabah?

Struggling here.

@infosrabah
Copy link
Author

infosrabah commented Jul 29, 2021

I'm on it, LoL
But I think I found something..

To be honest I opted to use it in Normal django form, not a Modal bootstrap. but ..

I talked to someone to translate the jQuery form repeater to vanilla js (Found that this is the cause of the problem I don't know but maybe it clashes with jQuery of Uros.)
here the jQuery lib (if you find someone to translate it it would be great) : https://github.com/elo80ka/django-dynamic-formset

I have a vanilla js form repeater that i'm using in a commercial product(Author are ok to use that repeater in my pet projects), I need time to decouple it and deploy it to my django project, if it works I will post it in my github.

Keep you posted if ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

3 participants