Project

General

Profile

« Previous | Next » 

Revision b94039e0

Added by Serghei Mihai over 9 years ago

objects management forms and templates reviewed

View differences:

corbo/views.py
25 25

  
26 26
class AnnounceEditView(UpdateView):
27 27
    model = models.Announce
28
    form_class = AnnounceForm
28 29
    success_url = '../..'
29 30

  
30 31
edit_announce = AnnounceEditView.as_view()
......
47 48
add_category = CategoryCreateView.as_view()
48 49

  
49 50
class CategoryEditView(UpdateView):
51
    form_class = CategoryForm
50 52
    model = models.Category
51
    success_url = '..'
53
    success_url = '../..'
52 54

  
53 55
edit_category = CategoryEditView.as_view()
54 56

  
55 57
class DeleteView(DeleteView):
56 58
    model = models.Category
59
    success_url = '../..'
57 60

  
58 61
delete_category = DeleteView.as_view()
59 62

  

Also available in: Unified diff