Conjunto 4ee88df en seguimiento_proyectos
- Fecha y hora:
- 01/06/2017 15:24:55 (hace 7 años)
- Branches:
- master, desarrollo
- Children:
- 6bdfd1d
- Parents:
- 1bf2704 (diferencia), c016092 (diferencia)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
sepai/proyectos/views.py
r943282e rc016092 48 48 LoginRequeridoPerAuth 49 49 ) 50 51 from users.models import UserProfile 52 50 53 51 54 ## Carga de datos del archivo csv a la base de datos … … 163 166 super(OptionsMangProjectsView, self).__init__() 164 167 168 def get_context_data(self, **kwargs): 169 """Use this to add extra context.""" 170 try: 171 perfil = UserProfile.objects.select_related().get(fk_user=self.request.user.id) 172 except: 173 perfil = None 174 pass 175 print(perfil) 176 context = super(OptionsMangProjectsView, self).get_context_data(**kwargs) 177 context['userprofile'] = perfil 178 return context 179 165 180 166 181
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.