user6307062
user6307062

Reputation:

how to access an element of the get_context_data in django

I'm trying to access to the elements of the get_context_data like:

context = super(DetallePlanillasContratado,self).get_context_data(**kwargs)

and then access in this way:

context['new_context'] = context.element_of_the_context

do we have something like this on django?

Upvotes: 1

Views: 82

Answers (1)

ben432rew
ben432rew

Reputation: 1902

context['new_context'] = context['elements_of_the_context']

Upvotes: 1

Related Questions