[Answer]-Customize Django ContentType

1👍

If you want only some models in content_type you can use

limit_choices = models.Q(app_label = 'myapp', model = 'MyModel') | models.Q(app_label = 'myotherapp', model = 'MyModelOtherModel') )
content_type = models.ForeignKey(ContentType, limit_choices_to = limit_choices )
👤trnsnt

Leave a comment