Как и при добавлении объекта модели первого приложения, добавить его в качестве другой модели во второе приложение со свойствами первого объекта?
# firstApp.models
class itemInShop(models.Model):
name = models.CharField(blank=True, null=True, max_length=100)
slug = models.SlugField(blank=True, null=True)
url = models.CharField(blank=True, null=True,
max_length=100,editable=False)
descr = models.TextField(blank=True, null=True, max_length=5000)
title = models.CharField(blank=True, null=True, max_length=100)
text = models.TextField(blank=True, null=True, max_length=5000)
propertiesManufacturer = models.BooleanField(default=False)
propertiesType = models.BooleanField(default=False)
propertiesPrice = models.BooleanField(default=False)
propertiesPower = models.BooleanField(default=False)
propertiesAmount = models.BooleanField(default=False)
Пример модели второго приложения. Является ли это возможным?
class Pech(models.Model):
name = models.CharField(blank=True, null=True, max_length=100)
manufacturer = models.CharField(max_length=100,
choices=CHOICES_PECHI_MANUFACTURER,
blank=True, null=True)
type = models.CharField(blank=True, null=True, max_length=100,
choices=CHOICES_PECHI_TYPE)
price = models.PositiveIntegerField(blank=True, null=True)
power = models.FloatField(blank=True, null=True)