These are chat archives for allegro/ralph

12th
Dec 2016
xliiv
@xliiv
Dec 12 2016 10:03

@spencewb16_twitter it's issue with base_object, because when i did

      class EthernetInline(RalphTabularInline):                                    
          model = Ethernet                                                         
          fields = (                                                               
            'base_object', 'model', #'mac', 'model_name', 'label', 'speed',   
          )                                                                        
          extra = 1                                                                
          raw_id_fields = ['model']                                                
        #formset = NetworkInlineFormset                                          
          form = EthernetLockDeleteForm

this works

blob
xliiv
@xliiv
Dec 12 2016 11:06
.. this works for model, but when i add 'base_object' to raw_id_fields this doesn't work and needs debugging
swb
@spencewb16_twitter
Dec 12 2016 17:37

@xliiv this is added to admin.py file, or within components.py file? what is 'base_object' field for anway - seems unrelated? can this work with 'label' field within 'class Ethernet(Component)' or not possible?

sorry for so many questions

and what is ethernetlockdeleteform
swb
@spencewb16_twitter
Dec 12 2016 21:46
ohhhhh it's the views.py
i m a dummy sorry :( i think i got this tho.... for now..... :smiling_imp: