On Tue, Jan 22, 2013 at 8:39 PM, Satinderpal Singh <satinder.goray...@gmail.com> wrote: > How to save the objects to models without using form. I tried to save > the name object to the model, but unable to do so, > > material = Material.objects.get(name=request.GET['material']) > I think this will help you : p = table(material =material, ...[other fields of table to be saved]) p.save()
Here table is your table where you want object value to be saved. Hope this helps you. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.