forked from mishbahr/django-usersettings2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.py
43 lines (38 loc) · 1.73 KB
/
admin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from usersettings.admin import SettingsAdmin
from .models import SiteSettings
class SiteSettingsAdmin(SettingsAdmin):
fieldsets = (
(_('Site Title / Tag Line'), {
'description': 'Enter a Site Title and Tag Line to appear '
'on the front of your site. '
'Please note, your Site Title and Tag Line\'s '
'appearance will be dependent on your template.',
'fields': ('site_title', 'tag_line',)
}),
(_('Site Description'), {
'classes': ('collapse',),
'description': 'Enter a Site Description or bio for your site. ',
'fields': ('site_description', )
}),
(_('Physical Location'), {
'description': 'Enter your address. This is typically for '
'businesses with offices or storefronts. '
'Depending on your template this can be '
'displayed in the header, footer, or '
'Info Page of your site.',
'fields': (
'street_address', 'address_line_2', 'address_locality',
'address_region', 'postal_code',
)
}),
(_('Contact Details'), {
'description': 'Enter a phone/fax number or email,'
'where your site visitors can contact you. '
'Depending on your template, this may '
'display on your site.',
'fields': ('telephone', 'fax_number', 'email', )
}),
)
admin.site.register(SiteSettings, SiteSettingsAdmin)