Django How to Serialize from ManyToManyField and List All
问题 I'm developing a mobile application backend with Django 1.9.1 I implemented the follower model and now I want to list all of the followers of a user but I'm currently stuck to do that. I also use Django Rest Framework. This is my UserProfile model class UserProfile(models.Model): # Linking UserProfile to User model. user = models.OneToOneField(User) city = models.CharField(null=True, max_length=30, blank=True) gender = models.CharField(null=True, max_length=10, blank=True) # m for male, f for