Commit 2d49afc0fa7533ee844a8197d60beb71e5c644f4
1 parent
918fef11
Exists in
master
and in
3 other branches
fixing menu alignment
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
categories/views.py
... | ... | @@ -73,6 +73,11 @@ class CreateCategory(HasRoleMixin, CreateView): |
73 | 73 | template_name = 'categories/create.html' |
74 | 74 | success_url = reverse_lazy('categories:index') |
75 | 75 | |
76 | + | |
77 | + def get_initial(self): | |
78 | + initial = super(CreateCategory, self).get_initial() | |
79 | + return initial | |
80 | + | |
76 | 81 | def form_valid(self, form): |
77 | 82 | self.object = form.save() |
78 | 83 | #TODO: Implement log calls | ... | ... |