Source

ultrasound / django_ultrasound / products / models.py

Full commit
from django.db import models
from django.utils.translation import ugettext_lazy as _

# Create your models here.

class SupplierName(models.Model):
    supplier_name = models.CharField(_("home Address"), max_length=100)
    
    def __unicode__(self):
        return self.supplier_name
    
        
    
class Product(models.Model):
    title = models.CharField(_('title'), max_length=200)
    price = models.DecimalField(_("price "), decimal_places=2,max_digits=5)
    supplier  = models.ForeignKey(SupplierName, verbose_name=_("supplier name"), null=True,
                                            blank=True)