diff --git a/gnuviechadmin/hostingpackages/urls.py b/gnuviechadmin/hostingpackages/urls.py index e0999e9..150256e 100644 --- a/gnuviechadmin/hostingpackages/urls.py +++ b/gnuviechadmin/hostingpackages/urls.py @@ -21,16 +21,16 @@ urlpatterns = patterns( '', url(r'^create$', CreateHostingPackage.as_view(), name='create_hosting_package'), - url(r'^(?P[\w0-9@.+-]+)/$', - CustomerHostingPackageList.as_view(), name='hosting_packages'), - url(r'^(?P[\w0-9@.+-]+)/create$', - CreateCustomerHostingPackage.as_view(), - name='create_customer_hosting_package'), - url(r'^(?P[\w0-9@.+-]+)/(?P\d+)/$', - CustomerHostingPackageDetails.as_view(), - name='hosting_package_details'), url(r'^allpackages/', AllCustomerHostingPackageList.as_view(), name='all_hosting_packages'), + url(r'^(?P[-\w0-9@.+_]+)/$', + CustomerHostingPackageList.as_view(), name='hosting_packages'), + url(r'^(?P[-\w0-9@.+_]+)/create$', + CreateCustomerHostingPackage.as_view(), + name='create_customer_hosting_package'), + url(r'^(?P[-\w0-9@.+_]+)/(?P\d+)/$', + CustomerHostingPackageDetails.as_view(), + name='hosting_package_details'), url(r'^(?P\d+)/option-choices$', HostingOptionChoices.as_view(), name='hosting_option_choices'), url(r'^(?P\d+)/add-option/(?P\w+)/(?P\d+)$', diff --git a/gnuviechadmin/templates/base.html b/gnuviechadmin/templates/base.html index 4200c10..a4761bd 100644 --- a/gnuviechadmin/templates/base.html +++ b/gnuviechadmin/templates/base.html @@ -53,7 +53,7 @@
  • {% trans "All hosting packages" %}
  • - {% else %} + {% elif user.is_authenticated %} {% trans "Hosting" %} {% endif %}