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

Como acessar atributos de um query set em django #19

Open
tulioc opened this issue Oct 30, 2017 · 0 comments
Open

Como acessar atributos de um query set em django #19

tulioc opened this issue Oct 30, 2017 · 0 comments
Labels

Comments

@tulioc
Copy link
Collaborator

tulioc commented Oct 30, 2017

Galera, como alguns de vocês estavam com dúvida de como acessar os atributos de um determinado objeto proveniente do banco de dados. Segue o tutorial:

        parlamentary = (Parlamentarians.objects.all()[:1].get())
        print(parlamentary.parlamentaryPhotoPath)

Bastava pesquisar sobre como acessar dados de um QuerySet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant