"calculated" filed in model

2012-10-24 Thread Mike Burr
I would like to accomplish the following: class Foo(models.Model): bar = models.CharField() baz = function(self.bar) Of course this doesn't work (at least as I want it to), but I'm guessing that most humans will know what I'm trying to do. What I want is: 1) User supplies value for 'ba

Re: "calculated" filed in model

2012-10-24 Thread Mike Burr
" save. However, this would > also be true of a signal based approach. For most simple uses, it should be > fine. > > Yours, > Russ Magee %-) > > > > > > > > On Thu, Oct 25, 2012 at 10:12 AM, Mike Burr wrote: > > > I would like to accomplish

Append only tables/models

2012-10-24 Thread Mike Burr
I know there are DBMS-specific ways of doing this. I know that there are Django ways of making fields read-only. What I cannot find is a way to make a table/model append-only. It'd be great if this were at the DB level, so I don't have to rely on my code not having any holes that allow edits. I do

Re: Append only tables/models

2012-10-25 Thread Mike Burr
On Oct 25, 3:44 pm, Christophe Pettus wrote: > On Oct 25, 2012, at 8:26 AM, Mike Burr wrote: > > > I know there are DBMS-specific ways of doing this. I know that there > > are Django ways of making fields read-only. What I cannot find is a > > way to make a table/model