Django

Code

Changeset 2963

Show
Ignore:
Timestamp:
05/22/06 00:22:58 (2 years ago)
Author:
adrian
Message:

Added small bit to docs/sites.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/sites.txt

    r2962 r2963  
    240240objects associated with the current site, according to the ``SITE_ID`` setting. 
    241241 
     242Put another way, these two statements are equivalent:: 
     243 
     244    Photo.objects.filter(site=settings.SITE_ID) 
     245    Photo.on_site.all() 
     246 
    242247How did ``CurrentSiteManager`` know which field of ``Photo`` was the ``Site``? 
    243248It defaults to looking for a field called ``site``. If your model has a