On 10 août, 19:57, brian <brian.down...@yakkadesign.com> wrote:
> Hi Michal,
>
> Can you provide details about the QuerySets part?  I'm new to Django.
>
> One of the ideas I had was using inheritance.  For example:
> ---------------------------
> myBaseModel(models.Model)
>    …
>
> class form1( myBaseModel ):
>     pass

Sorry but your question is not quite clear to me. What do you call a
"form" exactly here ??? A Form subclass or a Model subclass ?

(as a side not: the convention in Python is to use StudlyCaps for
class names, and conventions are a *very* important part of Python).

> The problem I'm seeing is that when I use form1 the data gets put in
> form1 and myBaseModel.

If what you want is to have two or more models inheriting from a same
base model BUT each with a distinct table, you have to make the base
model abstract (cf the model doc).

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

Reply via email to