Changeset 2963
- Timestamp:
- 05/22/06 00:22:58 (2 years ago)
- Files:
-
- django/trunk/docs/sites.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/sites.txt
r2962 r2963 240 240 objects associated with the current site, according to the ``SITE_ID`` setting. 241 241 242 Put another way, these two statements are equivalent:: 243 244 Photo.objects.filter(site=settings.SITE_ID) 245 Photo.on_site.all() 246 242 247 How did ``CurrentSiteManager`` know which field of ``Photo`` was the ``Site``? 243 248 It defaults to looking for a field called ``site``. If your model has a
