Re: Best way to change Site.__str__ to return name not domain

2014-10-13 Thread Collin Anderson
Hi Michael, As you said, it sounds like monkey patching is your best option, besides re-writing the whole sites app. You could, if you wanted to, explain your use-case on the django-developers mailing list and propose having "swappable" site models, which would help you out. See this ticket:

Best way to change Site.__str__ to return name not domain

2014-10-07 Thread Michael Jones
Hi, I am using the sites framework and finding it very useful but I would prefer the Site.__str__ method to return the site name instead of the domain. What is the best way of going about that? Is it reasonable to monkey patch it or do I need to make my own sites app with a copy of the code?