generic-relations Questions

1

I have a model with multiple Generic Relations that has become very complicated to use in my templates. The model is a 'Gig' or musical event that takes place at a 'Venue' and/or a 'Festival' and h...
Airfoil asked 16/7, 2013 at 22:57

1

Solved

I'm using Django v1.9.4 with PostgreSQL 9.2.14 behind. With the following models: from django.db import models from django.contrib.contenttypes.fields import GenericRelation, GenericForeignKey fro...

1

Solved

I have mixin and model: class Mixin(object): field = GenericRelation('ModelWithGR') class MyModel(Mixin, models.Model): ... But django do not turn GenericRelation field into GenericRelatedObj...
Righthanded asked 23/1, 2015 at 17:17

2

Solved

I have the following conceptual models: class GenericAbstractBase(models.Model): name = models.CharField(max_length=255) staff = generic.GenericRelation( "Staff", content_type_field="content_t...
Isaacisaacs asked 5/3, 2014 at 14:37

1

Solved

I have objects with a generic relation pointing to various other objects, and I need them to be merged (inlined) so the serialized objects look like one whole objects. E.G: class Enrollement(mode...
1

© 2022 - 2024 — McMap. All rights reserved.