On 11/19/06 4:22 AM, halmcelroy wrote:
> This is a pretty basic model:
>
> from django.db import models
> class A(models.Model()):
^^^^^
Should be::
class A(models.Model):
^^^
``models.Model()`` -- with the parens -- instantiates the (abstract) ``Model``
class, thus you end up trying to subclass an *instance*, not a class. The
correct syntax for subclassing is without the parens.
I'd suggest you spend some time with a Python tutorial if you want to know
more about what I'm saying. Dive into Python (http://diveintopython.org/) is
quite good.
Jacob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---