Skip to content

Commit a3628e5

Browse files
alaw005jspetrak
authored andcommitted
Ensure 1-1 relationship feed and feed info
1 parent 8c442bf commit a3628e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multigtfs/models/feed_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FeedInfo(Base):
2626
2727
Implements feed_info.txt in the GTFS feed.
2828
"""
29-
feed = models.ForeignKey('Feed', on_delete=models.CASCADE)
29+
feed = models.OneToOneField('Feed', on_delete=models.CASCADE)
3030
publisher_name = models.CharField(
3131
max_length=255,
3232
help_text="Full name of organization that publishes the feed.")

0 commit comments

Comments
 (0)