These are chat archives for allegro/ralph

9th
Dec 2016
xliiv
@xliiv
Dec 09 2016 07:16
@spencewb16_twitter it should work out of the box, what's the issue and it's custom solution
Raoul Thill
@rthill
Dec 09 2016 08:19
@vi4m yes sure, do you have any plans on vault integration?
swb
@spencewb16_twitter
Dec 09 2016 16:39
@xliiv whenever i make a foreign key field, it makes it a dropdown. This is in the Components tab on assets. I've compared the model and my field to others that have the autocomplete solution (for example ServiceEnvironment or BudgetInfo on the BasicInfo tab), and I'm not seeing any differences. I suspect it is something to do with the admin.py file for assets, but I've tried everything I can think of?
swb
@spencewb16_twitter
Dec 09 2016 17:36
Screen Shot 2016-12-09 at 12.34.01 PM.png
^i want this to change to...
Screen Shot 2016-12-09 at 12.34.20 PM.png
✪ vi4m Marcin Kliks
@vi4m
Dec 09 2016 17:37
allegro/ralph@be58d08
see this commit
raw_id_fields had to be set
(for @spencewb16_twitter question)
swb
@spencewb16_twitter
Dec 09 2016 18:58
thanks for the responses everyone. i thought that was the case, so i added raw_id_fields to EthernetAdmin class (which is where i'm trying to add it on the components tab) in admin.py for assets. However, still no dice
✪ vi4m Marcin Kliks
@vi4m
Dec 09 2016 18:58
@xliiv @ar4s any ideas?