Don't know if you've solved this already, but
This works for me and I think is what you're looking for
views.py
form.fields["groups"].queryset =
Groups.objects.filter(profile=profile)
I only display the groups that are associated with the profile.
My profile is attached to the user via request.u
On Mon, Oct 25, 2010 at 2:23 PM, Giancarlo Razzolini
wrote:
> James,
> First of all thank you for the fast response. I'll take a look into the
> admin forms widgets. I'm already looking for third party applications field
> types and widgets to see if I find one that does what I want. I was eve
Giancarlo,
I've run into this trouble myself. The problem here is the widget
itself. It does exactly what you described:
-Shows all possible values for the ManyToMany field.
-Highlights the "active" or "selected" values. These correspond to
items in that list/array/queryset.
For any more than
Hi all,
I've been using django for some time now and I must say that it's my
favorite framework. But lately I've run into a problem. Let's say I have
the following models:
class Contact(models.Model):
id = models.AutoField(primary_key=True)
user = models.ForeignKey(User, edit
4 matches
Mail list logo