Code

Opened 8 years ago

Closed 19 months ago

#2618 closed New feature (wontfix)

[patch] Added the ability for Site objects to have profiles.

Reported by: jay@… Owned by: nobody
Component: contrib.sites Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Someday/Maybe
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Attachments (1)

site_profiles.diff (1.3 KB) - added by jay@… 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by jay@…

comment:1 Changed 7 years ago by Simon G. <dev@…>

  • Needs documentation set
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 7 years ago by jacob

  • Triage Stage changed from Design decision needed to Someday/Maybe

comment:3 Changed 3 years ago by gabrielhurley

  • Component changed from Contrib apps to contrib.sites

comment:4 Changed 3 years ago by lrekucki

  • Severity changed from normal to Normal
  • Type changed from enhancement to New feature

comment:5 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:7 Changed 19 months ago by aaugustin

  • Resolution set to wontfix
  • Status changed from new to closed

User profiles haven't been very convincing. They've been deprecated in Django 1.5 in favor of custom user models.

Site profiles probably wouldn't fare better. You could make a case for custom site models. If you're interested, please send a concrete proposal to the django-developers mailing list.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.