diff --git a/amadeus/static/css/base/amadeus.css b/amadeus/static/css/base/amadeus.css index f4adc2a..1ef8959 100755 --- a/amadeus/static/css/base/amadeus.css +++ b/amadeus/static/css/base/amadeus.css @@ -10,6 +10,7 @@ color: white; width: 80%; margin-bottom: 3%; + text-align: center; } #sidebar-menu > .item:hover{ @@ -20,7 +21,7 @@ #sidebar-menu > .item i { - margin-left: 15%; + } diff --git a/categories/views.py b/categories/views.py index f2694fa..0b7aafe 100644 --- a/categories/views.py +++ b/categories/views.py @@ -73,6 +73,11 @@ class CreateCategory(HasRoleMixin, CreateView): template_name = 'categories/create.html' success_url = reverse_lazy('categories:index') + + def get_initial(self): + initial = super(CreateCategory, self).get_initial() + return initial + def form_valid(self, form): self.object = form.save() #TODO: Implement log calls -- libgit2 0.21.2