Use commit=False when saving the form, add all the other attributes and
then call save(). E.g.

obj = form.save(commit=False)
obj.additional_stuff = additional
obj.save()

But some of that stuff such as creation date and time can be done
automatically at the model with auto_now=True


On 24 June 2014 01:28, Anurag Baidyanath <anurag.fa...@gmail.com> wrote:

> I am trying to create a form in which the user enter details like his
> email id and query.
>
> After the form is submitted i have to save the data that I get from the
> form along with some additional info such as userid , submitted date and
> time, etc into the database.
>
> What approach should be adopted for solving this problem?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d0f67d83-3e85-4e94-8509-73d69fb6c60d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d0f67d83-3e85-4e94-8509-73d69fb6c60d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqTbjkhiiczuB4bwOf-EqeEKsB%2BJnEm%2BvSpsxviYoTayyPRUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to