cccs-web / core

CCCS' customized django web application
4 stars 11 forks source link

reporting for 'projects' duplicated; mistake in my HTML (or just my python) #158

Closed cccs-ip closed 10 years ago

cccs-ip commented 10 years ago

In my efforts to tidy up our reporting on our projects pages, I introduced some sort of mistake where the the information in the 'Project Details' gets duplicated for many projects. E.g. : https://crossculturalconsult.com/projects/project/indigenous-peoples-country-profile-russian-federation/

Please help me to fix.

pwhipp commented 10 years ago

I don't see the problem. Have you fixed this yourself?

For the related objects, just drill down to the thing you want but remember that things are more complex for multiple objects - A project has countries, not a country and you need to cope with the list which you can access as 'countries'. Where this handling gets complicated, I go back to the view and use python to make something that the template can easily handle (e.g. a countries field that is a comma delimited string of country names).

cccs-ip commented 10 years ago

Look closely at the section that says "project details" in the example link; all fields are duplicated.

pwhipp commented 10 years ago

Fixed. Will deploy shortly.

cccs-ip commented 10 years ago

thanks