lincolnloop / django-dynamic-raw-id

(formerly known as django-salmonella) A raw_id_fields widget replacement that handles display of an object's string value on change and can be overridden via a template.
MIT License
163 stars 55 forks source link

Two features request #21

Closed ghost closed 11 years ago

ghost commented 11 years ago

I have two feature request for this nice widget:

bartTC commented 11 years ago

I dont understand the first item; there is a [x] button which clears the field. See the screenshot in the docs. Is that what you're missing?

The second item, I assume you mean the Many2Many instance of the widget. In that case its a Django admin issue. Salmonella doesn't interferer with that behavior, it does not handle the popup interaction, so I don't see a way to solve this (without emulating the whole popup/value select behavior.

Closing, please reopen if you think further steps are necessary.

Thanks for the feedback and ideas!

ghost commented 11 years ago

Item one:

No that button is ok for clearing all records. But assuming i have 10 records in the field, and I would remove only one of them. It would be nice to do it by clicking near the respecting object string a button and not through removing the id from the field. Also would be nice to hide the input field.

Item two:

Yes I'm talking about the raw_fields_id widget. You have already included the original dismissRelatedLookupPopup. I think this is the function that need to be changed for my request.

I'm asking this two features because I'm a newbie to javascript / jquery and have no idea where to start.

ghost commented 11 years ago

I have now found a solution, if you are interested I could send you the link to my modified repository.

yml commented 11 years ago

A pull request would be interresting.

ghost commented 11 years ago

I receive a Permission denied when I push my branch to this repo: ERROR: Permission to lincolnloop/django-salmonella.git denied to rdollinger.

You can see my changes on my fork on bitbucket: https://bitbucket.org/rdollinger/django-salmonella