Skip to content

Commit f68c948

Browse files
feat ListView vistas basadas en clases COMPLETE
ListView vistas basadas en clases COMPLETE Reseolver: # see also: #
1 parent 73775dd commit f68c948

File tree

16 files changed

+4
-4
lines changed

16 files changed

+4
-4
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ListView_vistas_basadas_en_clases/core/erp/views/category/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def category_list(request):
1111
}
1212
return render(request, 'category/list.html', data)
1313

14-
15-
class CategoryListView(ListView):
14+
# Vista basadas en clases, usando herencia
15+
class CategoryListView(ListView): #Herencia
1616
model = Category
1717
template_name = 'category/list.html'
1818

Loading

ListView_vistas_basadas_en_clases/templates/header.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
44
<div class="container">
55
<a href="#" class="navbar-brand">
6-
<img src="{% static 'img/logo.png' %}" alt="AdminLTE Logo"
6+
<img src="{% static 'img/dj.jpg' %}" alt="AdminLTE Logo"
77
class="brand-image"
88
style="opacity: .8">
9-
<span class="brand-text font-weight-light">Hades</span>
9+
<span class="brand-text font-weight-light">Django</span>
1010
</a>
1111
<button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#navbarCollapse"
1212
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">

0 commit comments

Comments
 (0)