Fix singleton admin: ensure Save button appears by checking count instead of filter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from .models import FooterSettings, SiteSettings
|
||||
from .models import FooterSettings, SiteSettings, ContactSettings
|
||||
|
||||
|
||||
def footer_settings(request):
|
||||
@@ -20,3 +20,11 @@ def site_settings(request):
|
||||
'site_settings': settings,
|
||||
'currency_symbol': settings.currency_symbol,
|
||||
}
|
||||
|
||||
|
||||
def contact_settings(request):
|
||||
"""Context processor для контактных данных"""
|
||||
contacts = ContactSettings.get_contacts()
|
||||
return {
|
||||
'contact_settings': contacts,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user