django - Modelform: need to get access to related model through the form -


i have models:

class item(model):   name = ...   size = ... class instance(model):   item = foreignkey(item)   date = datefield() 

now need make reception, collect formset of items, transform them instances, store instances inside reception (the items don't need stored in reception).
don't understand on level should this: in model, in form, in view, or in template (perhaps not). i'm confused it.
should make 2 fields in reception model (one items , 1 instances) hide instances field in receptionform? , continue through view create transform, clean unneeded items data reception?


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -