Last active
October 24, 2020 13:47
-
-
Save godfather68/9f480a49398780adfdf996096f0361ca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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