Re: Object data change approvals.

2010-02-16 Thread esatterwh...@wi.rr.com
You could use contrib.contenttypes framework to do this pretty easily provided the models you will be working with have a similar structure; they all have a field called 'content' for example that would be editable. You can have a model that is the intermediate which has a generic foreign key whic

Re: Object data change approvals.

2010-02-15 Thread bruno desthuilliers
On Feb 15, 5:36 am, iliveinapark wrote: > Thanks very much, Bruno, this is a pretty simple way of doing what I > want. Q&D example, really. A robust working solution will probably be a bit more involved. > Now I just have to figure out to apply it generically over multiple > levels of inheritanc

Re: Object data change approvals.

2010-02-14 Thread iliveinapark
Thanks very much, Bruno, this is a pretty simple way of doing what I want. Now I just have to figure out to apply it generically over multiple levels of inheritance =/ Cheers mate. On Feb 12, 10:00 pm, bruno desthuilliers wrote: > On Feb 12, 11:24 am, bruno desthuilliers wrote: > > (snip) > > o

Re: Object data change approvals.

2010-02-12 Thread bruno desthuilliers
On Feb 12, 11:24 am, bruno desthuilliers wrote: (snip) oops, forgot to actually use the custom manager: > class MyModelRevision(models.Model): (snip) objects = MyModelRevisionManager() >    class Meta: >        unique_together = (('MyModel', 'published'),) -- You received this message

Re: Object data change approvals.

2010-02-12 Thread bruno desthuilliers
On Feb 11, 11:23 pm, iliveinapark wrote: > Gday all, > > I'm trying to find a way to have changes made to a model object > require approval before becoming the live data on my site. I had > thought about cloning the object, and having the clone stored as a > draft, but making it live would require

Object data change approvals.

2010-02-11 Thread iliveinapark
Gday all, I'm trying to find a way to have changes made to a model object require approval before becoming the live data on my site. I had thought about cloning the object, and having the clone stored as a draft, but making it live would require either swapping all the data from the draft to the o