forked from alexdzul/demo
-
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.
VideoTutorial No. 25 [Personalizando el Admin]
Aqui se encuentran los cambios necesarios para una visualización personalizada del modelo de Productos.
- Loading branch information
Showing
10 changed files
with
17 additions
and
26 deletions.
There are no files selected for viewing
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,28 +1,7 @@ | ||
Proyecto demo | ||
======================== | ||
Descripción: | ||
demo | ||
==== | ||
|
||
Proyecto de Software WEB para la venta de productos en línea. | ||
Este proyecto se trabaja como parte de los ejemplos del canal de youtube | ||
Proyecto que se trabaja en el canal de Youtube de alexexc2 | ||
- http://www.youtube.com/user/alexexc2 | ||
|
||
==================================================== | ||
Software: | ||
|
||
- Version actualizada a Django 1.5.1 | ||
- Procesamiento de imágenes con el software PIL | ||
- Motor de Base de Datos MySQL y conector MySQLDB Python | ||
|
||
==================================================== | ||
|
||
Para cualquier duda o comentario por favor contactarme vía twitter | ||
|
||
@alexjs88 | ||
|
||
|
||
Estoy siempre atento a escuchar crítica constructiva. | ||
Recuerden que los videos son para ayudar a la comunidad de Django en Español. | ||
|
||
|
||
Un Saludo. | ||
Alex Dzul | ||
Version Django 1.4 |
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,14 @@ | ||
from django.contrib import admin | ||
from demo.apps.ventas.models import cliente,producto,categoriaProducto | ||
|
||
|
||
class productoAdmin(admin.ModelAdmin): | ||
list_display = ('nombre','thumbnail','precio','stock') | ||
list_filter = ('nombre','precio') | ||
search_fields = ['nombre','precio'] | ||
fields = ('nombre','descripcion',('precio','stock','imagen'),'categorias','status') | ||
|
||
|
||
admin.site.register(cliente) | ||
admin.site.register(producto) | ||
admin.site.register(producto,productoAdmin) | ||
admin.site.register(categoriaProducto) |
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 added
BIN
+117 KB
demo/media/MultimediaData/Producto/Funciona siiii/foto_mesa_bertely_4l1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22 KB
demo/media/MultimediaData/Producto/otro mas/silla-de-comedor-madera-beige.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.