Beispiel #1
0
 def get_query_set(self):
     query_set = super(SolicitacaoManager, self).get_query_set()
     revenda = Users.current().revenda
     if revenda != None and revenda.cidade != 'Pinhalzinho':
         return query_set.filter(ordemServico__servico__revenda = revenda)
     else:
         return query_set;
Beispiel #2
0
 def get_query_set(self):
     query_set = super(PagamentosManager, self).get_query_set()
     revenda = Users.current().revenda
     if revenda != None and revenda.cidade != 'Pinhalzinho':
         return query_set.filter(conta__ordem_servico__servico__revenda = revenda)
     else:
         return query_set;
Beispiel #3
0
 def revenda_atual(self):
     return Users.current().revenda