Many-To-Many Fields View on Django Admin -
basically trying recreate fields in model similar django user authenticate system, try using many-to-many fields ended this.
i trying have field can show exist , field have chosen similar django admin, looks this.
this code
class category(models.model): name = models.charfield(max_length=128, unique=true) class blogpage(models.model): category = models.manytomanyfield(category) title = models.charfield(max_length=128) preview = models.textfield(max_length=256) content = models.textfield()
i believe want filter_horizontal
widget used in admin template. should help: django admin manytomanyfield
Comments
Post a Comment