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

Widgets are not loading correctly when inline extra = 0 #32

Closed
djheroez opened this issue May 25, 2013 · 9 comments
Closed

Widgets are not loading correctly when inline extra = 0 #32

djheroez opened this issue May 25, 2013 · 9 comments

Comments

@djheroez
Copy link

Hi there,

Somehow when I use inlines and define extra = 0 for my inline, the widgets for instance, the calendar and the cool dropdowns with search functionality stopped working, apparently they do not load correctly, but if I change to extra = 1 everything works fine again.

Best,
Dennis.

@sshwsfc
Copy link
Owner

sshwsfc commented May 25, 2013

I will check it thanks.

@sshwsfc
Copy link
Owner

sshwsfc commented May 27, 2013

Hi @djheroez , I test extra=0 , it works fine in my demo. I think maybe it's depends on your codes. so please give me some details or demo source code better, :-)

@sshwsfc
Copy link
Owner

sshwsfc commented May 28, 2013

I can't replay the issue, @djheroez reopen it any time when you commit some detail info.

@sshwsfc sshwsfc closed this as completed May 28, 2013
@djheroez
Copy link
Author

Hi @sshwsfc , I was able to reproduce the issue in the demo site. If you change the MaintainInline in line 42 and set the extra to 0 the calendar widget works correctly but the time widget just after it does not.

Thank you.

@sshwsfc
Copy link
Owner

sshwsfc commented May 30, 2013

It works for me, please update newest code and try again, you can check js console for any error info, thanks
snip20130530_7

@djheroez
Copy link
Author

Are you editing an existing record or adding a new one? For me it doesn't work when adding a new record. I don't think I have permissions to reopen issues, do I?

@sshwsfc sshwsfc reopened this Jun 12, 2013
@djheroez
Copy link
Author

Another thing I just found. If you define a charfield that you want to make a choicefield, you must define the choices in your model, if you do it in a form instead, something like this: gender = forms.ChoiceField(choices=[("M","Male"),("F","Female")]) the select widget does not render properly.

@sshwsfc
Copy link
Owner

sshwsfc commented Jun 24, 2013

Oh,I will check it.

@sshwsfc
Copy link
Owner

sshwsfc commented Aug 28, 2013

The newest version fix the issues.

@sshwsfc sshwsfc closed this as completed Aug 28, 2013
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