Friday, August 23, 2019

Re: Get queryset outside models.py

What error you are getting cannu post it here with your code for model manager. 

On Sat, 24 Aug, 2019, 2:20 AM Ezequias Rocha, <ezequias.rocha@gmail.com> wrote:
Hi everyone

I would like to know if it is possible to retrieve models.mymodel instance from outside the models.py to retrieve a queryset.

I want to make a selection in a specific model but I am not inside the model.

I need to perform some update in my action  model but the information is in another entity.

I tryed to use Manager (mymodel = models.Manager() but I havn't found any function to get an specific queryset from Manager.

Could someone help me with this issue?

Best regards
Ezequias

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2aa7bdd8-3f4e-4949-beed-292468e8edaf%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGHZBzzPsP6iv2xp6f-1iVe%2BmEJWHhz%2BWJN4V0BrxCGdkOk8eA%40mail.gmail.com.

No comments:

Post a Comment