Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django content type for model

ctype = ContentType.objects.get(model='user')
related_to_user = Room.objects.filter(content_type=ctype)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #content #type #model
ADD COMMENT
Topic
Name
7+9 =