Changes between Version 10 and Version 11 of JoinedResourceController
- Timestamp:
- 09/20/09 21:06:27 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JoinedResourceController
v10 v11 45 45 - '''joinby''' describes the join keys: 46 46 - pass a single field name for natural joins (same key field in both tables) 47 - pass a dictionary of ''tablename :fieldname'' pairs for primary/foreign key matching, in which:47 - pass a dictionary of ''tablename=fieldname'' pairs for primary/foreign key matching, in which: 48 48 - ''tablename'' is the name of the respective primary table 49 49 - ''fieldname'' the name of the foreign key in the joined table that points to the ''id'' field in the primary table 50 - e.g. {{{joinby = {'db.gis_feature':'feature_id'}}}}50 - e.g. {{{joinby = dict(pr_person='person_id')}}} 51 51 - '''fields''' is a list of the fields in the joined resource that shall appear in list views: 52 52 - if omitted or set to None, all readable fields will be included