manytomanyfield
Django: "limit_choices_to" doesn't work on ManyToManyField
I am running Django 1.1 and cannot get the \"limit_choices_to\" option开发者_如何学Go for my ManytoManyField to work.[详细]
2023-03-29 18:17 分类:问答How list ManyToManyField in interactive shell?
I\'m new to Django, sorry if this is a basic question. I need to list the values of \"n_category\" in a Directory.[详细]
2023-03-28 02:47 分类:问答django-reversion revert ManyToMany fields outside admin
I am using django-reversion in my project. And it works good except one thing: I can\'t get previous versions of ManyToMany fields. But in django admin it is works, not in my code.[详细]
2023-03-16 12:52 分类:问答Django ManyToManyField options
It is possible to give blank=True, null=True to ManyToManyField without hav开发者_如何学运维ing problems?[详细]
2023-03-04 19:17 分类:问答Django ManytoMany widget to CheckboxSelectMultiple and chained querysets
It happened that I needed a ManytoMany field to be displayed as a CheckboxSelectMultiple no problem with that. The trick part is that there are default fields to be displayed and a user should be able[详细]
2023-02-18 16:41 分类:问答How to select all objects that aren't in a manytomany relation in Django
I have the following models (resumed) in an application: class Account(models.Model): name = models.CharField(max_length=64)[详细]
2023-02-18 03:40 分类:问答How do I exclude current object in ManyToMany query?
I have two basic models, Story and Category: class Category(models.Model): title = models.CharField(max_length=50)[详细]
2023-02-14 16:24 分类:问答Django admin checkbox with multiple select
I have a Django app. Pretty basic one at that. In the model I have a class for items and a class for groups. The groups has a many to many for the items:[详细]
2023-02-14 06:20 分类:问答Django admin ManyToManyField: improving usability on change_form?
I have Django models as follows: class Subject(models.Model): name = models.CharField(max_length=35, unique=T开发者_C百科rue)[详细]
2023-02-13 22:22 分类:问答Display a comma separated list of ManyToMany items in a Charfield on a ModelForm
I have a model containing a ManyToMany field to a table \"Tags\". Since this table could be huge, I don\'t want to display a select in the form, but a coma separated list of tags, provided by a charfi[详细]
2023-02-10 06:12 分类:问答