Friday, May 14, 2010

Django history table

Hi guys,

I am trying to implement history table but I am stuck with the model
structure for it.

So this is what I would like to implement

I have a database model and performing some action on that model
(basically on all the objects ). Each action, effects all the
objects.

I would like to store the results of every action (each action
effects suppose fixed 40 entries).

For ex:

Timestamp History

3:30 pm id1

once i click on that id

i should be able to see all the objects with that timestamp

4:30 id2

then the corresponding objects with that time timestamp


In order to implement this

I created two models with exact same fields.

The actual one gets updated every time while the second one makes a
copy of each updated enteries.

So for ex:

if my model 1 has 6 objects then my model 2 will have 18 objects if i
performed the action 3 times on my model1.

Then I would like to do @ above. I would like to see those objects
according to the timestamp. My model fields has the attribute
timestamp which will serve as filter.

I know its very tricky. But any help regarding this will be highly
appreciated.

Thanks.

--RJ

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate