Re: inheritance, abstract base classes and generic foreign keys

2009-04-10 Thread herr.klein...@googlemail.com
On Apr 10, 12:10 pm, Malcolm Tredinnick wrote: > On Fri, 2009-04-10 at 02:34 -0700, herr.klein...@googlemail.com wrote: > > Thanks Malcom. > > > All right lets see if i could put my real problem simpler. Lets say > > you are the tutor of a programming course and you want to check the > > progra

Re: inheritance, abstract base classes and generic foreign keys

2009-04-10 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 02:34 -0700, herr.klein...@googlemail.com wrote: > Thanks Malcom. > > All right lets see if i could put my real problem simpler. Lets say > you are the tutor of a programming course and you want to check the > programming assignments semi-automatically. > So you would set up

Re: inheritance, abstract base classes and generic foreign keys

2009-04-10 Thread herr.klein...@googlemail.com
Thanks Malcom. All right lets see if i could put my real problem simpler. Lets say you are the tutor of a programming course and you want to check the programming assignments semi-automatically. So you would set up a Task to which a student can submit a solution. If the solution is accepted depen

Re: inheritance, abstract base classes and generic foreign keys

2009-04-09 Thread Malcolm Tredinnick
On Thu, 2009-04-09 at 15:48 -0700, herr.klein...@googlemail.com wrote: > Hi! > > I have cages filled with animals. All animals can move, but they do it > all differently. Some animals even have attributes the others don't. > Now i want all the animals in a cage to move. > > How do i implement th

inheritance, abstract base classes and generic foreign keys

2009-04-09 Thread herr.klein...@googlemail.com
Hi! I have cages filled with animals. All animals can move, but they do it all differently. Some animals even have attributes the others don't. Now i want all the animals in a cage to move. How do i implement that in Django? First i thought i could use simple inheritance, serialize the attribute