Skip to content

Commit

Permalink
[#630] Add piwik_id field to PartnerSite
Browse files Browse the repository at this point in the history
And to the admin and a migration
  • Loading branch information
zzgvh committed Aug 28, 2014
1 parent fec618c commit 621f389
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 3 deletions.
6 changes: 3 additions & 3 deletions akvo/rsr/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,17 +993,17 @@ class PartnerSiteAdmin(TimestampsAdminDisplayMixin, admin.ModelAdmin):
fieldsets = (
# the 'notes' field is added in get_fieldsets() for eligible users
(u'General', dict(fields=('organisation', 'enabled',))),
(u'HTTP', dict(fields=('hostname', 'cname', 'custom_return_url', 'custom_return_url_text'))),
(u'HTTP', dict(fields=('hostname', 'cname', 'custom_return_url', 'custom_return_url_text', 'piwik_id',))),
(u'Style and content',
dict(fields=('about_box', 'about_image', 'custom_css', 'custom_logo', 'custom_favicon',))),
dict(fields=('about_box', 'about_image', 'custom_css', 'custom_logo', 'custom_favicon',))),
(u'Languages and translation', dict(fields=('default_language', 'ui_translation', 'google_translation',))),
(u'Social', dict(fields=('twitter_button', 'facebook_button', 'facebook_app_id',))),
(_(u'Projects'), {
'description': u'<p style="margin-left:0; padding-left:0; margin-top:1em; width:75%%;">%s</p>' % _(
u'Choose what projects will be shown on your partnersite. By selecting one or more keywords below, only projects matching that keyword will be shown on the partnersite.'
),
'fields': ('partner_projects', 'keywords'),
}),
}),
)
filter_horizontal = ('keywords',)
list_display = ('__unicode__', 'full_domain', 'enabled', 'show_keywords')
Expand Down

0 comments on commit 621f389

Please sign in to comment.