change on broker (organization type) - some changes on livestock & herd
This commit is contained in:
@@ -3,7 +3,7 @@ from simple_history.models import HistoricalRecords
|
||||
from django.db import models
|
||||
from apps.core.models import BaseModel
|
||||
from apps.authorization.models import UserRelations
|
||||
from apps.authentication.models import Organization
|
||||
from apps.authentication.models import OrganizationType, Organization
|
||||
from django.contrib.postgres.fields import ArrayField
|
||||
from apps.livestock.models import LiveStockType
|
||||
from datetime import datetime
|
||||
@@ -238,8 +238,8 @@ class Broker(BaseModel):
|
||||
related_name='product_broker',
|
||||
null=True
|
||||
)
|
||||
organization = models.ForeignKey(
|
||||
Organization,
|
||||
organization_type = models.ForeignKey(
|
||||
OrganizationType,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='product_organization',
|
||||
null=True
|
||||
|
||||
Reference in New Issue
Block a user