Answer the question
In order to leave comments, you need to log in
Efficient DB fetch?
There are the following models:
class User(models.Model):
...
class UserSettings(modes.Model)
user = models.OneToOneField(User)
hide_from = models.ManyToManyField(User)
...
class Post(models.Model):
user = models.ForeignKey(User)
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question