Skip to content

Commit

Permalink
Add FK from eBOSS_Target_v5 model to photoobj
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jun 9, 2020
1 parent 7aeab69 commit 6f316ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/sdssdb/peewee/sdss5db/catalogdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ class Meta:

class eBOSS_Target_v5(CatalogdbModel):

sdss = ForeignKeyField(SDSS_DR13_PhotoObj,
column_name='objid_targeting',
object_id_name='objid_targeting',
backref='+')

class Meta:
table_name = 'ebosstarget_v5'

Expand Down

0 comments on commit 6f316ad

Please sign in to comment.