rogeriofalcone / sappira

Automatically exported from code.google.com/p/sappira
0 stars 0 forks source link

Providers listing does not display assigned teams #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login 
2. Click Providers link

What is the expected output? What do you see instead?
You should see the teams assigned, instead you see Not Assigned.

What version of the product are you using? On what operating system?
trunk

Original issue reported on code.google.com by andrewa...@gmail.com on 31 Oct 2009 at 3:25

GoogleCodeExporter commented 9 years ago
I don't see the "Providers" link... am I looking in the wrong place or has it 
been 
removed?

Original comment by inshany@gmail.com on 4 Nov 2009 at 2:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
revision 160 changed this to users. The url is 
http://127.0.0.1:8000/inpatient/user/ the bug is still there.

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 4:28

GoogleCodeExporter commented 9 years ago
You code is wrong in the user_list.html template:

<pre>{% for team in user.users.all %}</pre>

Should be:
<pre>{% for team in user.team_set.all %}</pre>

Original comment by inshany@gmail.com on 4 Nov 2009 at 4:40

GoogleCodeExporter commented 9 years ago
Indeed.

Revision 168 fixes this. However, the template files are in auth/ rather than 
inpatient. I'm thinking this is a 
mistake and it should be in templates/inpatient. Before changing it can 
somebody confirm?

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 4:53

GoogleCodeExporter commented 9 years ago
The teams link's do not work, I'll fix that and recommit. Should of tested it 
better (d'oh).

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 5:13

GoogleCodeExporter commented 9 years ago
Yes. They should not be in "auth". So confirmed.

Original comment by inshany@gmail.com on 4 Nov 2009 at 5:13

GoogleCodeExporter commented 9 years ago
revision 176 & revision 177 fixes all these issues.

Original comment by andrewa...@gmail.com on 4 Nov 2009 at 7:45