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.

enter image description here

i trying have field can show exist , field have chosen similar django admin, looks this.

enter image description here

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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -