[PYTHON] Search for yourself from methods in Django's model

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

Search for yourself from methods in Django's model
Search for strings in Python
Search for strings in files
What is on_delete used in django's model?
Search for Pokemon haunting information from Twitter
Benefits of using slugfield in Django's model
Make any key the primary key in Django's model
Do an ambiguous search for mysql in Django
Anchoco for yourself
Used from yarn introduction for Node.js in WSL environment
Memorandum of methods useful for organizing columns in DataFrame
Recursively search for files and directories in Python and output