google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

change handler for raw id fields isn't working #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Very new functionality, so perhaps you know this already -- but I can only
get the change handler to fire if I manually type in the ID of the item. 
Populating via the popup or even cut and paste doesn't do it.  

Original issue reported on code.google.com by jsmull...@gmail.com on 24 Mar 2009 at 4:32

GoogleCodeExporter commented 9 years ago
yes, I know. working on this one. in the meantime, after closing the popup just
insert your cursor into the input-field and use "tab" (to manually fire the
"change-event").

Original comment by sehmaschine on 24 Mar 2009 at 4:35

GoogleCodeExporter commented 9 years ago
good tip, thanks!

Original comment by jsmull...@gmail.com on 24 Mar 2009 at 4:36

GoogleCodeExporter commented 9 years ago
no. bad tip. that´s not working. however, I´m looking for a better solution 
anyway ...

Original comment by sehmaschine on 24 Mar 2009 at 5:00

GoogleCodeExporter commented 9 years ago
working better now with the latest update ... although not fully fixed.

Original comment by sehmaschine on 24 Mar 2009 at 5:18

GoogleCodeExporter commented 9 years ago
update: this works fine for me, but there´s still one bug. if there are two
foreignkey-fields one after another, it doesn´t work.

Original comment by sehmaschine on 25 Mar 2009 at 7:39

GoogleCodeExporter commented 9 years ago

Original comment by sehmaschine on 25 Mar 2009 at 2:58

GoogleCodeExporter commented 9 years ago
Is it possible to add two foreing keys one after other? Because I'm having 
exactly this problem and I dont know how to fix it, the change event is not 
working. Help please, I know this is old, but I'm using the last version and I 
have this problem.

Original comment by marcosmo...@gmail.com on 20 Jan 2015 at 5:20

GoogleCodeExporter commented 9 years ago
It was working before, but suddenly it's not!!!
# define the raw_id_fields
  raw_id_fields = ('vehiculo')
# define the autocomplete_lookup_fields
  related_lookup_fields = {
  #'fk': ['cliente'],
  'fk': ['vehiculo'],
  }
The change event is not working, neither the 2 foreing keys together.

Original comment by marcosmo...@gmail.com on 20 Jan 2015 at 5:22