Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mejoras en las páginas de solicitud de alta #189

Merged
merged 2 commits into from
Sep 19, 2020

Conversation

facundobatista
Copy link
Member

En general:

  • respetar newlines en las descripciones

En la de personas:

  • Sólo categorías para humanes

En la de organizaciones:

  • Mostrar las categorías

  • Incluí el texto correspondiente del estatuto

  • Puse un link al folleto de beneficios

# test that it show only human-related categories
cat = Category.objects.create(name=Category.BENEFACTOR_GOLD, description='', fee=500)
response = self.client.get(reverse('signup_person'))
self.assertNotIn(cat, response.context_data['categories'])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cat en este caso es un objecto... Como funciona el in en esos casos?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sé exactamente la teoría de qué hace el objeto de Django ahí... pero funciona, porque hice el test primero, fallaba, y luego excluí esa categoría y empezó a pasar ok. O sea que el "in" funcionaba bien (el objeto debe hashearse por algo que tenga sentido, etc)

@facundobatista facundobatista merged commit 8953609 into master Sep 19, 2020
@lecovi lecovi deleted the improve-memberreq-pages branch May 8, 2021 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants