Changes between Version 2 and Version 3 of Ticket #35129, comment 4
- Timestamp:
- Jan 19, 2024, 10:17:25 AM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35129, comment 4
v2 v3 37 37 38 38 class 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) 40 40 journal = models.ForeignObject( 41 41 Journal, … … 46 46 class Meta: 47 47 constraints = [ 48 ForeignKeyConstraint(Journal, from_fields=[" issn"], to_fields=["issn"]) # XXX: This currently doesn't exist but it could48 ForeignKeyConstraint(Journal, from_fields=["journal_id"], to_fields=["issn"]) # XXX: This currently doesn't exist but it could 49 49 ] 50 50 }}}