django, ForeignKey N+1
Forign Key 참조를 사용해보다가 발견한 현상 아래 두 모델은 DRF를 익히기 위해 만든 모델이다 class User(AbstractBaseUser, PermissionsMixin): email = models.EmailField(max_length=255, unique=True) password = models.CharField(max_length=128) objects = UserManager() USERNAME_FIELD = "email" REQUIRED_FIELDS = [] class Feed(models.Model): id = models.BigAutoField(help_text='Feed ID', primary_key=True) user_id = models.ForeignKey("User..