Re: How to get queryset from get method

2018-12-05 Thread Thiago Luiz Parolin
Thanks!!
This site is awesome and will help me a lot 



> Em 4 de dez de 2018, às 16:05, Gerson David Vizquel Alemán 
>  escreveu:
> 
> Hello Thiago, review this link: http://ccbv.co.uk/
> 
> El martes, 4 de diciembre de 2018, 8:38:24 (UTC-4), thiago.parolin escribió:
>> 
>> I have a class (Updateview) to handle file upload for a particular model. In 
>> this class, I do some validation on the get method that uses a queryset. In 
>> get_object and get_context_data I need to do the same query used in the get 
>> method, how can I reuse the get method's queryset in another method of the 
>> same class?
>> I do not know if I could explain it correctly, but thanks if anyone can help 
>> me.
>> 
>> -- 
>> Thiago Luiz Parolin
>> 
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/d8b0fe72-63ed-4713-ad12-f807402eed1d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CEBFE353-0C0C-464F-BB9B-A25CC47DEC93%40unesp.br.
For more options, visit https://groups.google.com/d/optout.


Re: How to get queryset from get method

2018-12-04 Thread Gerson David Vizquel Alemán
Hello Thiago, review this link: http://ccbv.co.uk/

El martes, 4 de diciembre de 2018, 8:38:24 (UTC-4), thiago.parolin escribió:
>
> I have a class (Updateview) to handle file upload for a particular model. 
> In this class, I do some validation on the get method that uses a queryset. 
> In get_object and get_context_data I need to do the same query used in the 
> get method, how can I reuse the get method's queryset in another method of 
> the same class?
> I do not know if I could explain it correctly, but thanks if anyone can 
> help me.
>
> -- 
> Thiago Luiz Parolin
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d8b0fe72-63ed-4713-ad12-f807402eed1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get queryset from get method

2018-12-04 Thread Thiago Luiz Parolin
I have a class (Updateview) to handle file upload for a particular model.
In this class, I do some validation on the get method that uses a queryset.
In get_object and get_context_data I need to do the same query used in the
get method, how can I reuse the get method's queryset in another method of
the same class?
I do not know if I could explain it correctly, but thanks if anyone can
help me.

-- 
Thiago Luiz Parolin

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANbmKyvFhCuyDjENxn8YxBJz71rXK3AH%2Bh9W16EuNnBhRVRLOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.