move the description field to the base Company model

This commit is contained in:
Andreas Zweili 2020-06-08 21:07:40 +02:00
parent 180124d641
commit 459771924c
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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