Hi everybody!
I use django a lot, and I'm really glad about the admin interface. I
always hated to code admin interfaces myself, never again :)
But now I have the task of making a new corporate website with a PHP
framework, and my question is, are there any frameworks, that have a
django-like (=
I've got two models: a Category model and a Message model. The Message
model has a timestamp 'time_created', by which the messages are sorted
per default. My problem is, that I want to make a list of categories
ordered by the time_created date of the newest message in every
category. Anyboy can he
Thanks, that's a good idea, but if I try it, the choices are gone and
i get an empty field.
I tried:
class ProfileForm(ModelForm):
def __init__(self, *args, **kwars):
super(ModelForm, self).__init__(*args, **kwars)
self.fields['gender'].widget = RadioSelec
Hi!
I'd like to use the RadioSelect widget for some of my model fields with
choices. But django always uses Select and if I change it manually in the form
class, than I have to specify the choices again and if it's optional or not.
So thats not very DRY?!
Anyway to do this the right way?
than
4 matches
Mail list logo