MCPcopy Index your code
hub / github.com/realpython/discover-flask / __init__

Method __init__

project/models.py:17–20  ·  view source on GitHub ↗
(self, title, description, author_id)

Source from the content-addressed store, hash-verified

15 author_id = db.Column(db.Integer, ForeignKey('users.id'))
16
17 def __init__(self, title, description, author_id):
18 self.title = title
19 self.description = description
20 self.author_id = author_id
21
22 def __repr__(self):
23 return '<title {}'.format(self.title)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected