Hi Wiz.
at the moment the 'ctfield' field type expects to be have a table with
a content_type and object_id
similar to the comment model here:
http://svn.zilbo.com/svn/django/magic-removal/common/comment/models.py
and TagObject table here:
http://svn.zilbo.com/svn/django/magic-removal/common/tag/models.py

you then add the 'ctfield' to the referencing model ala:

class Conversation(models.Model):

...
    comments = CTField( Comment )
    tags = CTField( TagUserObject )
    summary_tags = CTField( TagObject )

regards
ian

On 5/9/06, wiz <[EMAIL PROTECTED]> wrote:
> > I have created a Field called 'CTField' which will acts like a regular 
> > foreign key,
> > but only fetches things which match the content_type as well.
> Is it working with r0.95? I'm getting "OperationalError
>   table app_model has no column named object_id"
>

>
>


--
[EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9818-0132

If everything seems under control, you're not going fast enough. -
Mario Andretti

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to