Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to filter with ForienKey field #21

Open
santhosh432 opened this issue Nov 14, 2018 · 0 comments
Open

How to filter with ForienKey field #21

santhosh432 opened this issue Nov 14, 2018 · 0 comments

Comments

@santhosh432
Copy link

santhosh432 commented Nov 14, 2018


Class Model(model.Models):
      city = models.CharField()
      country = models.ForeignKey(Country)

      def __str__(self):
             return '{0}'.format(self.city)

Here i want to filter with country
Please help me

@santhosh432 santhosh432 changed the title How to filter with ForienKey filed How to filter with ForienKey field Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant