Troubleshooting “Related Field has invalid lookup: icontains”

后端 未结 8 867
萌比男神i
萌比男神i 2021-01-31 06:33

I have the following models in models.py:

class ListinoTraduttore(models.Model):
        traduttore = models.ForeignKey(\'Traduttore\', related_name=         


        
8条回答
  •  无人及你
    2021-01-31 07:24

    add in admin.py

    admin.site.register(Traduttore, TraduttoreAdmin)
    admin.site.register(ListinoTraduttore, ListinoTraduttoreAdmin)
    

    see the link https://docs.djangoproject.com/en/dev/intro/tutorial02/

提交回复
热议问题