views:

58

answers:

1

For example:

class Subdomain(Site):
    #fields here

and

class Subdomain(models.Model):
    site = models.OneToOne(Site)
    #fields here
+2  A: 

Models with a OneToOne have an independent PK; submodels always use the PK of their supermodel.

Ignacio Vazquez-Abrams
That's it? Thanks!
coconutrandom