Answers for "'ManyRelatedManager' object has no attribute name"

0

'ManyRelatedManager' object has no attribute name

#It happens when the object you're trying to access is a 
#ManyToMany Relationship

#to access all devices from a user:
for d in user.device.all():
  print(d.name)
Posted by: Guest on January-23-2022

Code answers related to "'ManyRelatedManager' object has no attribute name"

Python Answers by Framework

Browse Popular Code Answers by Language