Skip to content

Instantly share code, notes, and snippets.

@godfather68
Last active October 24, 2020 13:47
Show Gist options
  • Save godfather68/9f480a49398780adfdf996096f0361ca to your computer and use it in GitHub Desktop.
Save godfather68/9f480a49398780adfdf996096f0361ca to your computer and use it in GitHub Desktop.
from django.db import models
# Create your models here.
class Customer(models.Model):
name = models.CharField(max_length=50)
barcode = models.ImageField(upload_to='barcodes/', blank=True)
def __str__(self):
return self.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment