Django admin for PHP?

2009-07-14 Thread Bela Hausmann

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 (= powerfull, automatic, model based, easy) admin
interface/generater.

I know about the symfony admin generator (which is not as easy as the
django admin). Are there any more?

I know this is kind of off-topic, but only django users know how
powerful the django admin is, so I can't ask the PHP community.

Best regards from Austria,
Bela
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Sorting via foreign key

2009-03-03 Thread Bela Hausmann

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 help how to do that in django?

I tried:

  Category.objects.order_by('messages')

but that doesn't work like I would like it to.

Bela
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Field with RadioSelect widget instead of Select widget

2008-08-31 Thread Bela Hausmann

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 = RadioSelect()
class Meta:
model = Profile
...

Any ideas?

On Aug 22, 12:18 pm, julianb <[EMAIL PROTECTED]> wrote:
>
> Maybe you can change the widget after the form got declared:
>
> form = BlaForm()
> form.fields['field'].widget = forms.RadioSelect()
>
> But I'm not quite sure what it does with the "--" line you have in
> a Select field.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Field with RadioSelect widget instead of Select widget

2008-08-21 Thread Bela Hausmann

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?

thanks!
Bela

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---