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

Allow passing in attrs to the widget #6

Open
cool-RR opened this issue Jun 6, 2012 · 1 comment
Open

Allow passing in attrs to the widget #6

cool-RR opened this issue Jun 6, 2012 · 1 comment

Comments

@cool-RR
Copy link
Contributor

cool-RR commented Jun 6, 2012

This method:

https://github.com/praekelt/django-simple-autocomplete/blob/master/simple_autocomplete/widgets.py#L98

Takes attrs, but it doesn't do anything with them. I'm trying to put a required="required" attribute on the input, but it's not working because this method ignores it. It should put those attrs into the HTML in generates.

@hedleyroos
Copy link
Contributor

You're right. It does get passed through when falling back to the default view, but never gets used in the autocomplete widget itself.

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