learning-unlimited/ESP-Website — pull request #358 by ruthie (2012-04-23 13:55:22+00:00)
Title: Give registration types a configurable display name

Adds a displayname field to the RegistrationType model, and changes the __unicode__ function to return either (a) the displayname, if it is not an empty string or (b) the name, if the displayname is an empty string. So the default is to display the name, but a different displayname can be added, and not having a displayname doesn't break anything.

The migration was tested once, but was modified slightly since last testing. The reason it hasn't been tested is that I merged in main, and that added a dependency I didn't have, and I don't have time to fix that right now. On the other hand, I have pretty high confidence that the migration does work.

I realize that this pull request also includes some of the mailman testing stuff, for which there is, I believe, a separate pull request. I haven't been able to figure out how to narrow the commit range so this request doesn't include those things also, and in the interest of expedience, I'm sending as is.