Changes between Version 2 and Version 3 of Ticket #35129, comment 4


Ignore:
Timestamp:
Jan 19, 2024, 10:17:25 AM (10 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35129, comment 4

    v2 v3  
    3737
    3838class Biblio(Model):
    39     issn = models.CharField(max_length=50, null=True, db_index=True)
     39    journal_id = models.CharField(max_length=50, null=True, db_index=True)
    4040    journal = models.ForeignObject(
    4141        Journal,
     
    4646    class Meta:
    4747        constraints = [
    48             ForeignKeyConstraint(Journal, from_fields=["issn"], to_fields=["issn"])  # XXX: This currently doesn't exist but it could
     48            ForeignKeyConstraint(Journal, from_fields=["journal_id"], to_fields=["issn"])  # XXX: This currently doesn't exist but it could
    4949        ]
    5050}}}
Back to Top