Issue with model method (Solved)

2018-12-13 Thread Felix Lazaro Carbonell
I beg your pardon. It was my mistake in a functional test. I missed part of the data needed to make it work correctly. Thank you all. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Issue with model method

2018-12-12 Thread Felix Carbonell
El martes, 11 de diciembre de 2018, 9:46:07 (UTC-5), Yarving Liu escribió: > > Can you show us the code? > Hello and thanks for your response: {{ ccosto.gastos_mes }} and {{ ccosto.gastos_ano }} yield None Nevertheless if I print the response content when calling that URI with django test cl

Re: Issue with model method

2018-12-11 Thread Yarving Liu
Can you show us the code? On Mon, Dec 10, 2018 at 10:06 PM Felix Lazaro Carbobonell < fe...@epepm.cupet.cu> wrote: > > > Good day to everyone. > > > > I have defined a model method wich is called on a template (DTL) and the > result is None when I test the URI with selenium. Normal attributes fro

Issue with model method

2018-12-10 Thread Felix Lazaro Carbobonell
Good day to everyone. I have defined a model method wich is called on a template (DTL) and the result is None when I test the URI with selenium. Normal attributes from the model are displayed correctly. But when I test the same URI with the Django test client it works as expected and the re