Answer the question
In order to leave comments, you need to log in
Partitioning tables in django?
class Ground(models.Model):
cadastral_number = models.CharField(primary_key=True, max_length=24)
area = models.FloatField(null=True) # Если строительство незавершенно то значение 0
district = models.CharField(max_length=120, blank=True, null=True)
region = models.IntegerField( blank=True, null=True) # dRegionsRF
Answer the question
In order to leave comments, you need to log in
https://www.postgresql.org/docs/10/static/ddl-part...
Looks like FKs on a partitioned table are not supported. You can manually drop the constraint and carefully monitor the integrity of the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question