Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 30, 2019 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/7b87be8af880ad275e631e4a7aac98b1 to your computer and use it in GitHub Desktop.
Save parzibyte/7b87be8af880ad275e631e4a7aac98b1 to your computer and use it in GitHub Desktop.
from django.db import models
# Create your models here.
class Gasto(models.Model): # Extiende de models.Model
fecha = models.DateField(auto_now_add=True)
descripcion = models.CharField(max_length=100)
monto = models.DecimalField(max_digits=12, decimal_places=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment