Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 14, 2010 12:20:16

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Track data changes


Hi,

Is there some way by which i can track what all has changed when a user
submits a form.
i.e, i display a form to a user(with data) -> the user *can* change some of
its form elements -> submits the form.

One way to do that would be to compare with the model when the user submits
and do a diff between the form and that of the model. But is their a more
*generic* solution?

-V-

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 14, 2010 12:30:48

Daniel R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Track data changes


On Jun 14, 12:20 pm, Venkatraman S <venka...@gmail.com> wrote:
> Hi,
>
> Is there some way by which i can track what all has changed when a user
> submits a form.
> i.e, i display a form to a user(with data) -> the user *can* change some of
> its form elements -> submits the form.
>
> One way to do that would be to compare with the model when the user submits
> and do a diff between the form and that of the model. But is their a more
> *generic* solution?
>
> -V-

How does the user flow in your question differ from the standard form
process?
--
DR.

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 June 14, 2010 14:15:51

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Track data changes


On Mon, Jun 14, 2010 at 5:00 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:

>
> How does the user flow in your question differ from the standard form
> process?
>

My Q was more related to tracking the data changes - assuming that the DB
has a value 'Job' for attribute 'Name' and when displayed to the user he
changes it to 'Steve' - then i want to track this.

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 June 14, 2010 14:19:19

Venkatraman S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Track data changes


Ok I got what i wanted :http://djangosnippets.org/snippets/1052/http://code.google.com/p/django-reversion/-V-http://twitter.com/venkasub--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support