-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e54efe0
commit 99e4879
Showing
34 changed files
with
291 additions
and
66 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
from django.contrib import admin | ||
from .models import Filme, Episodio | ||
from .models import Filme, Episodio, Usuario | ||
from django.contrib.auth.admin import UserAdmin | ||
|
||
# Os campos do UserAdmin são tuplas, desta forma transformei em lista python para incluir o novo campo | ||
# de filmes vistos. | ||
campos = list(UserAdmin.fieldsets) | ||
campos.append( | ||
("Histórico", {'fields': ('filmes_vistos',)}) | ||
) | ||
|
||
UserAdmin.fieldsets = tuple(campos) | ||
|
||
# Register your models here. | ||
admin.site.register(Filme) | ||
admin.site.register(Episodio) | ||
admin.site.register(Usuario, UserAdmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %} | ||
Login Hashflix | ||
{% endblock %} | ||
|
||
{% block head %} | ||
{% load static %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style_login.css' %}"/> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="content"> | ||
<h2>Login</h2> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %} | ||
Logout Hashflix | ||
{% endblock %} | ||
|
||
{% block head %} | ||
{% load static %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style_logout.css' %}"/> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="content"> | ||
<h2>Logout</h2> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %} | ||
Pesquisa de Filmes | ||
{% endblock %} | ||
|
||
{% block head %} | ||
{% load static %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'css/style_pesquisa.css' %}"/> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="content"> | ||
<h2>Resultados da busca</h2> | ||
<div class="search"> | ||
{% for filme in object_list %} | ||
<div class="search-item"> | ||
<a href="{% url 'filme:detalhesfilme' filme.pk %}"> | ||
<img src="{{ filme.thumb.url }}" alt="" class="item"> | ||
<p class="text-list">{{ filme.titulo }}</p> | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.