|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[Django] #10918: to_field and raw_id_fields in ModelAdmin
by Django-3
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #10918: to_field and raw_id_fields in ModelAdmin
----------------------------------+----------------------------------------- Reporter: dcramer | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- When using a to_field on a raw_id_field it fails under the following conditions: 1) Click the hourglass to find a foreign key. 2) Search (or filter) 3) Click the entry. It inserts the primary key rather than the to_field. However, if you do not search/filter it works just fine. The problem seems to be with the fact that t=to_field is not passed on the search/filter. -- Ticket URL: <http://code.djangoproject.com/ticket/10918> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #10918: to_field and raw_id_fields in ModelAdmin
by Django-3
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #10918: to_field and raw_id_fields in ModelAdmin
-------------------------------------------+-------------------------------- Reporter: dcramer | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Changes (by dcramer): * needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: A quick fix (problem doesn't cover all bases) for us was to comment out the following two lines in main.py: {{{ # if TO_FIELD_VAR in self.params: # del self.params[TO_FIELD_VAR] }}} -- Ticket URL: <http://code.djangoproject.com/ticket/10918#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #10918: to_field and raw_id_fields in ModelAdmin
by Django-3
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #10918: to_field and raw_id_fields in ModelAdmin
-------------------------------------------+-------------------------------- Reporter: dcramer | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Resolution: | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Changes (by brosner): * stage: Unreviewed => Accepted -- Ticket URL: <http://code.djangoproject.com/ticket/10918#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [Django] #10918: to_field and raw_id_fields in ModelAdmin
by Django-3
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message #10918: to_field and raw_id_fields in ModelAdmin
-------------------------------------------+-------------------------------- Reporter: dcramer | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Resolution: | Keywords: raw_id_field, to_field, lookup Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Changes (by anonymous): * keywords: => raw_id_field, to_field, lookup Comment: I'm experiencing the same issue. The fix dcramer suggests does not work for me - it simply makes selecting the record take you to the add/edit record page as opposed to closing the popup and taking back a value. -- Ticket URL: <http://code.djangoproject.com/ticket/10918#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@... To unsubscribe from this group, send email to django-updates+unsubscribe@... For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |