From 459771924c9dd8aa32ae9000c85840359b49acf8 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 8 Jun 2020 21:07:40 +0200 Subject: [PATCH] move the description field to the base Company model --- core/models/company.py | 1 + customers/models.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models/company.py b/core/models/company.py index 3755528..ff9b6b4 100644 --- a/core/models/company.py +++ b/core/models/company.py @@ -3,6 +3,7 @@ from django.db import models class Company(models.Model): name = models.CharField(max_length=50) + description = models.TextField(blank=True) class Meta: abstract = True diff --git a/customers/models.py b/customers/models.py index 6bab645..ebad783 100644 --- a/customers/models.py +++ b/customers/models.py @@ -8,7 +8,6 @@ class Owner(Company): class Customer(Company): name = models.CharField(max_length=50) - description = models.TextField(blank=True) def __str__(self): return self.name