python - Tastypie add new resource between two models -


below model defenition

class extendedcontenttocategory(models.model):     category = models.manytomanyfield(categories)     extended_content = models.foreignkey('extendedcontent', unique=true)  class meta:     verbose_name = _('assets > extended content category') 

this model connects categories , gallery models manytoone relationship. means 1 gallery able connect many category.

i need create api source add model objects using tastypie. can 1 please me regarding this


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

php - Redirect and hide target URL -