Closed DNX closed 13 years ago
Hi denis,
good suggestion, but I have already thought about this possibility and decided to don't implement it. Why ?
First of all, EDN is not a CRM, after gender information, someone could ask to add an age field in the Contact model. I don't want to maintain this kind of code, that's why I have implemented the content type into the Contact model to add a full profile.
http://pypi.python.org/pypi/emencia.django.newsletter#content-types
The second problem with gender is that Female, Male is too restrictive, in another project I had to implement a dozen of civility... and the list of civility should be extended in the future.
Nothing to do with the gender issue, but I would rather use this kind of code for display. :
{{ contact.get_gender_display }}
Regards
Ok Fantomas42, I agree with your statements. Thanks.
I propose to add
gender
field in Contact model. This one permits us to personalize better the text of the Newsletter.The choises:
the field:
For instance to greet a person we can add this piece of code in our Content:
So the output can be:
I hope that you enjoy it!