Re: Admin interface using my views

2008-07-08 Thread Stuart Grimshaw
On Jul 8, 2:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 06:22 -0700, Stuart Grimshaw wrote: > > I'm getting this error when trying to view my admin interface ... > > > In template /usr/lib/python2.5/site-packages/django/contrib/admin/ >

Admin interface using my views

2008-07-08 Thread Stuart Grimshaw
I'm getting this error when trying to view my admin interface ... In template /usr/lib/python2.5/site-packages/django/contrib/admin/ templates/admin/base.html, error at line 28 Caught an exception while rendering: Tried showSides in module teamsheet.sheets.views. Error was: 'module' object has

Re: CharField as text?

2008-07-02 Thread Stuart Grimshaw
On Jul 1, 9:41 pm, Brian Luft <[EMAIL PROTECTED]> wrote: > What is your purpose in defining a form field if it won't be used for > user input? I wanted to try and kee things simple (and look where that got me). I have a list of players, and want to display them, with checkboxes next to the

CharField as text?

2008-07-01 Thread Stuart Grimshaw
Is it possible (with newforms) to either display a CharField as just text, or have it's value used as the label on another field? I'm displaying names against checkboxes and I want the names to appear as the checkbox labels (or at least appear like they are) Any tips anyone? -S

Re: Choosing between User.first_name/last_name & username

2008-06-22 Thread Stuart Grimshaw
On Jun 22, 11:48 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > Stuart Grimshaw wrote: > > but it was throwing syntax errors on "player.player.first_name == '' ? > > player.player.username : player.player.first_name)" > > It looks like you're trying to

Choosing between User.first_name/last_name & username

2008-06-22 Thread Stuart Grimshaw
As part of my sign up process, I don't require that people fill in their first/last name, and just choose to show the username if no name is entered. Unfortunatly, I've come across a bit of code that I can't do this in, which has got me thinking, I'm doing this all over the show, so there must