Wednesday 15 September 2010

python - django render field of a foreignkey field -


I have a model:

  class media (model. Model): olc = Models Class Media Manager (model.model): title = model.ccarfield (max_length = 50, empty = true) Description = model. Sherfield (max_long = 100) media_files = models.ForeignKey ('MediaManager', related_name = 'media' (max_length = 255, empty = true) media_file = models.fileField (upload_to = get_upload_file_name) def __unicode __ (self): return self. Title  

and my look:

  Media media (files):  

Here for media_files in the media Is it possible that the areas of media manager in the media like

  field = ("OLC", "title", "media_file")  

And all this to the field Does Radan and a browse option Meedia_fail?

Any help?


No comments:

Post a Comment