Show
Ignore:
Timestamp:
03/27/07 14:33:05 (6 years ago)
Author:
ged
Message:

As reported by Jorge Godoy, the TG example used a strange has_field statement
with a manual foreignkey instead of a belongs_to relationship, so I changed
that.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/docs/examples.rst

    r68 r97  
    3838    class VisitIdentity(Entity): 
    3939        has_field('visit_key', String(40), primary_key=True) 
    40         has_field('user_id', Integer, ForeignKey('tg_user.user_id', name='user_id_fk', use_alter=True), index=True) 
     40        belongs_to('user', of_kind='User', colname='user_id', use_alter=True) 
    4141        using_options(tablename='visit_identity') 
    4242