Add the usual set of fields to supplier and update form accordingly

This commit is contained in:
2020-03-17 20:07:14 +00:00
parent b9d318e675
commit 36556dea33
9 changed files with 92 additions and 12 deletions

View File

@@ -45,6 +45,11 @@ class Supplier(models.Model, RevisionMixin):
ordering = ['name']
name = models.CharField(max_length=80)
phone = models.CharField(max_length=15, blank=True, null=True)
email = models.EmailField(blank=True, null=True)
address = models.TextField(blank=True, null=True)
notes = models.TextField(blank=True, null=True)
def get_absolute_url(self):
return reverse('supplier_list')