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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to