[patch] Added the ability for Site objects to have profiles.
|Reported by:||jay@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
Added the ability for Site objects to have profiles just like the User objects.
Use this in your settings.py
SITE_PROFILE_MODULE = "yourAppName.yourModel"
and make sure that model has a foreign key to the django.contrib.sites.models.Site model.
Now the Site object gets a get_profile()
This helps with multiple sites where each site had maybe a different zip code, Welcome message, etc. and it can all be edited through the admin site.
Change History (8)
Changed 9 years ago by jay@…
comment:1 Changed 8 years ago by Simon G. <dev@…>
- Needs documentation set
- Triage Stage changed from Unreviewed to Design decision needed
comment:2 Changed 8 years ago by jacob
- Triage Stage changed from Design decision needed to Someday/Maybe
comment:4 Changed 4 years ago by lrekucki
- Severity changed from normal to Normal
- Type changed from enhancement to New feature