Anders
2009-02-27 13:21:31 UTC
Hi.
In the users admin of Django admin there is a nice way of selecting
permissions for each user by adding and removing permissions from a
list of available permissions. (<div class="selector">)
I have models set up similar to the ones used for users and
permissions, but I am not able to get the nice "select from list on
left side and add to right side"-widget. I only get a normal multi-
select box.
My models could look like this:
class Interest(models.Model):
name= models.CharField(max_length=255)
class Person(models.Model):
name= models.CharField(max_length=255)
.....
interests = models.ManyToManyField(Interest)
How can I get the fancy manytomany-widget in the Person admin?
thanks
Anders
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
In the users admin of Django admin there is a nice way of selecting
permissions for each user by adding and removing permissions from a
list of available permissions. (<div class="selector">)
I have models set up similar to the ones used for users and
permissions, but I am not able to get the nice "select from list on
left side and add to right side"-widget. I only get a normal multi-
select box.
My models could look like this:
class Interest(models.Model):
name= models.CharField(max_length=255)
class Person(models.Model):
name= models.CharField(max_length=255)
.....
interests = models.ManyToManyField(Interest)
How can I get the fancy manytomany-widget in the Person admin?
thanks
Anders
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---