Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
afw
#python 3.6.9 # справочники: страны, годы, жанры, источники киноданных, возр.ограничения, языки, профессии # объекты: названия локализованные, названия международные, названия оригинальные, фильмы, организации, люди # процессы: оценки, мнения, подписки, сеансы class Film(models.Model): id = models.IntegerField(primary_key=True, db_column='id') title_local = models.ForeignKey(FilmNamesLocal) title_int = models.ForeignKey(FilmNamesInt) title_orig = models.ForeignKey(FilmNamesOrig) country = models.ForeignKey(Country) year = models.CharField(max_length=60, blank=True) company = models.ForeignKey(Company, db_column='company') genre1 = models.ForeignKey(AfishaGenre, db_column='genre1', related_name='genre1', null=True) genre2 = models.ForeignKey(AfishaGenre, db_column='genre2', related_name='genre2', null=True) genre3 = models.ForeignKey(AfishaGenre, db_column='genre3', related_name='genre3', null=True) site = models.CharField(max_length=300) director1 = models.IntegerField() director2 = models.IntegerField() director3 = models.IntegerField() imdb = models.CharField(max_length=60, blank=True) imdb_votes = models.IntegerField() actor1 = models.IntegerField(null=True, blank=True) actor2 = models.IntegerField(null=True, blank=True) actor3 = models.IntegerField(null=True, blank=True) actor4 = models.IntegerField(null=True, blank=True) actor5 = models.IntegerField(null=True, blank=True) actor6 = models.IntegerField(null=True, blank=True) runtime = models.CharField(max_length=150, blank=True) limits = models.CharField(max_length=150, blank=True) prokat1 = models.ForeignKey(Prokat, db_column='prokat1', related_name='prokat1', null=True, blank=True) prokat2 = models.ForeignKey(Prokat, db_column='prokat2', related_name='prokat2', null=True, blank=True) date = models.DateTimeField(null=True, blank=True) description = models.TextField(blank=True) comment = models.TextField(blank=True) country2 = models.ForeignKey(AfishaCountry, db_column='country2', related_name='country2', null=True) trailers = models.TextField() idalldvd = models.IntegerField(null=True, db_column='IdAllDVD', blank=True) datelastupd = models.DateTimeField(db_column='DateLastUpd') #waawdawfawfawf class Meta: db_table = u'film' managed = False
run
|
edit
|
history
|
help
0
Юра и заселение
JV
Search by starting alphabets.
DICTIONARY PROBLEM
Цифроразряды в разных системах счисления
PyEq
calucation
Lesson 6 part b2
PySlots3
isPalindrome.py