Tesis 1.0.0
Loading...
Searching...
No Matches
appFOOD.models.Producto Class Reference
Inheritance diagram for appFOOD.models.Producto:

Classes

class  Meta

Public Member Functions

 __unicode__ (self)
 __str__ (self)

Static Public Attributes

 id_producto = models.AutoField(primary_key=True)
 nombre_producto = models.CharField(max_length=45)
 descripcion = models.CharField(max_length=200)
 precio = models.FloatField()
 stock = models.IntegerField(default = 0 )
 imageURL = models.CharField( max_length=100, null=True )
 id_categoria = models.ForeignKey(CategoriaProducto, models.DO_NOTHING)

Detailed Description

Definition at line 21 of file models.py.

Member Function Documentation

◆ __str__()

appFOOD.models.Producto.__str__ ( self)

Definition at line 37 of file models.py.

◆ __unicode__()

appFOOD.models.Producto.__unicode__ ( self)

Definition at line 35 of file models.py.

Member Data Documentation

◆ descripcion

appFOOD.models.Producto.descripcion = models.CharField(max_length=200)
static

Definition at line 24 of file models.py.

◆ id_categoria

appFOOD.models.Producto.id_categoria = models.ForeignKey(CategoriaProducto, models.DO_NOTHING)
static

Definition at line 28 of file models.py.

◆ id_producto

appFOOD.models.Producto.id_producto = models.AutoField(primary_key=True)
static

Definition at line 22 of file models.py.

◆ imageURL

appFOOD.models.Producto.imageURL = models.CharField( max_length=100, null=True )
static

Definition at line 27 of file models.py.

◆ nombre_producto

appFOOD.models.Producto.nombre_producto = models.CharField(max_length=45)
static

Definition at line 23 of file models.py.

◆ precio

appFOOD.models.Producto.precio = models.FloatField()
static

Definition at line 25 of file models.py.

◆ stock

appFOOD.models.Producto.stock = models.IntegerField(default = 0 )
static

Definition at line 26 of file models.py.


The documentation for this class was generated from the following file: