You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromdjango.contrib.contenttypes.fieldsimportGenericRelationfromdjango.dbimportmodelsfromjsonfieldimportJSONFieldclassOrg(models.Model):
name=models.SlugField(
help_text="Name which references the organisation (unique)",
max_length=50,
unique=True,
)
label=models.CharField(
help_text="Displayed label",
max_length=100,
null=False,
blank=False,
)
logo=JSONField(
help_text="Logo (JSON). All fields are required<br />""Structure is likely to evolve and therefore stored as JSON for the sake of simplicity",
default='',
null=False,
blank=False,
)
apps=JSONField(
help_text="Applications configuration (JSON)<br />""Structure is likely to evolve and therefore stored as JSON for the sake of simplicity",
default='',
null=False,
blank=False,
)
# Reverse generic relation - XXX See https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#reverse-generic-relationsstudent_solutions=GenericRelation('student_solution.StudentSolution')
classMeta:
# https://docs.djangoproject.com/en/2.1/ref/models/options/#django.db.models.Options.db_tabledb_table="tfp_organisations"verbose_name='Organisation'verbose_name_plural='Organisations'# https://docs.djangoproject.com/en/2.1/ref/models/options/#indexes# indexes = [# models.Index(fields=['name', 'name']),# ]def__str__(self):
returnself.label
I have the following model in
models.py
The relevant line is
In the JET Admin I don't see the relation at all:
I don't see it either when trying to customise the interface:
I would expect the
StudentSolution
relationship to be displayed. I guess this connector doesn't have such feature at this time, but it could be handy.The text was updated successfully, but these errors were encountered: