SeaCogs/bible/models.py

23 lines
692 B
Python
Raw Normal View History

class Version:
def __init__(
2024-02-02 12:55:19 -05:00
self,
bible_id,
abbreviation,
language,
abbreviationLocal,
languageLocal,
version_copyright,
):
2024-02-02 12:55:19 -05:00
self.bible_id = bible_id
self.abbreviation = abbreviation
self.language = language
self.abbreviationLocal = abbreviationLocal
self.languageLocal = languageLocal
2024-02-02 12:55:19 -05:00
self.copyright = version_copyright
def __str__(self):
return self.abbreviationLocal
2024-02-02 12:55:19 -05:00
def __repr__(self):
return f'bible.models.Version("{self.bible_id}", "{self.abbreviation}", "{self.language}", "{self.abbreviationLocal}", "{self.languageLocal}", "{self.copyright}")'