Hi Guys, I am trying to populate fields for a template using views from the admin section of the site. The admin section is already setup and I got my models to show up there and I can add and delete properly so it works fine.
What remains is to populate those fields in views to render them onto the template. I do not know how to setup that view. What I have so far is basically a url linked to view: def cvdetails(request, id): the url is also setup fine it all works. I am just wondering how to setup this population. The fields I am populating are many to many fields. The models below will explain it well: class cvdb(models.Model): user = models.ForeignKey(User) language = models.ManyToManyField(Language, db_table='cm_cvdb_language', verbose_name="languages") profdesgn = models.ManyToManyField(ProfDesgn, db_table='cm_cvdb_profdesgn', verbose_name="professional designation", blank=True) practice = models.ManyToManyField(Practice, db_table='cm_cvdb_practice', verbose_name="Practice", blank=True) sector = models.ManyToManyField(Sector, db_table='cm_cvdb_sector', verbose_name="Sector", blank=True) profession = models.ManyToManyField(Profession, db_table='cm_cvdb_profession', verbose_name="Profession", blank=True) country = models.ManyToManyField(Country, db_table='cm_cvdb_country', verbose_name="Country", blank=True) I am a newbie here but know a little bit to setup basic forms. I am stuck on this one. Help please if you can :) Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.