move the description field to the base Company model
This commit is contained in:
parent
180124d641
commit
459771924c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue