Beispiel #1
0
class Links(models.Model):

    class Meta:
        app_label = 'inheritancedel'

    related_objects = gm2m.GM2MField(Task, on_delete_src=CASCADE,
                                     on_delete_tgt=DO_NOTHING_SIGNAL)
Beispiel #2
0
class Links(models.Model):

    class Meta:
        app_label = 'through_fields'

    related_objects = gm2m.GM2MField(Project, through='RelLinks',
                                     through_fields=('links', 'target'))
Beispiel #3
0
class Links(models.Model):

    class Meta:
        app_label = 'nodel'

    related_objects = gm2m.GM2MField(Project, on_delete=DO_NOTHING)
Beispiel #4
0
class GM2MLinks(models.Model):
    class Meta:
        app_label = 'm2m_and_gfk_through'

    sources = gm2m.GM2MField()
Beispiel #5
0
class Day(models.Model):
    class Meta:
        app_label = 'exotic_pks_prefetching'

    date = models.DateField(primary_key=True)
    tasks = gm2m.GM2MField(related_name='days')
Beispiel #6
0
class Links(models.Model):
    class Meta:
        app_label = 'norevrel'

    related_objects = gm2m.GM2MField()
Beispiel #7
0
class Links(models.Model):
    class Meta:
        app_label = 'through'

    related_objects = gm2m.GM2MField(Project, through='RelLinks')
Beispiel #8
0
class Links(models.Model):

    class Meta:
        app_label = 'extrevrel'

    related_objects = gm2m.GM2MField(Project, related_name='related_links')
Beispiel #9
0
class Links(models.Model):
    class Meta:
        app_label = 'signaldel'

    related_objects = gm2m.GM2MField(Project, on_delete=CASCADE_SIGNAL_VETO)
Beispiel #10
0
class Links(models.Model):
    class Meta:
        app_label = 'stringrevrel'

    related_objects = gm2m.GM2MField('app.Project')
Beispiel #11
0
class Links(models.Model):
    class Meta:
        app_label = 'simplerevrel'

    name = models.CharField(max_length=255, blank=True)
    related_objects = gm2m.GM2MField(Project)
Beispiel #12
0
class LinksBase(models.Model):
    class Meta:
        abstract = True
        app_label = 'in_abstract_model'

    related_objects = gm2m.GM2MField('app.Project')