class Email(models.Model):
email = models.EmailField (max_length = 75, help_text = "email address")
def test(self):
return Email.objects.all()
I was wondering what to do because ModelManager cannot refer to self.objects from instance, but I could refer to my class in that method.
Recommended Posts