我已经使用django rest api检索了某些用户的关注者,但是您能帮助我从某些用户中检索以下列表吗?

class User_Profile(models.Model):
userprofilename = models.OneToOneField(settings.AUTH_USER_MODEL,on_delete=models.CASCADE,related_name='user_p')
image_url = models.ImageField(upload_to=upload_location,null=True,blank=True)
date_published  = models.DateTimeField(auto_now=True,verbose_name="date published")
date_updated =models.DateTimeField(auto_now=True,verbose_name="date updated")
profile_slug = models.SlugField(blank=True,unique=False)
followers = models.ManyToManyField(settings.AUTH_USER_MODEL,related_name = 'is_following',blank=True,null=True) # user.followers.all()

Followers list of certain user

评论