old_contents: import datetime
  
  import tmdbsimple as tmdb
  from django.contrib.auth.models import User
  from django.db import models
  
  
  class Movie(models.Model):
      # General
      tmdb_id = models.IntegerField(unique=True)
      score = models.IntegerField(default=10)  # Every movie starts with a score of ten (may be changed later)
      submitter = models.ForeignKey(User)
  
      # Movie metadata
      title = models.CharField(max_length=128)
      tagline = models.TextField(blank=True, null=True)
      overview = models.TextField(blank=True, null=True)
      release_date = models.DateField()
      budget = models.IntegerField(blank=True, null=True)
      vote_average = models.DecimalField(max_digits=2, decimal_places=1)
      vote_count = models.IntegerField()
      original_language = models.CharField(max_length=2)
  
      # Other
      poster_path = models.CharField(blank=True, null=True, max_length=64)
  
      @staticmethod
      def add_from_id(tmdb_id, submitter):
          movie_data = tmdb.Movies(tmdb_id).info()
          m = Movie.objects.create(
              tmdb_id=movie_data["id"],
              submitter=submitter,
              title=movie_data["title"],
              tagline=movie_data["tagline"],
              overview=movie_data["overview"],
              release_date=datetime.datetime.strptime(movie_data["release_date"], "%Y-%m-%d"),
              budget=movie_data["budget"],
              vote_average=movie_data["vote_average"],
              vote_count=movie_data["vote_count"],
              original_language=movie_data["original_language"],
              poster_path=movie_data["poster_path"],
          )
          m.save()
  
new_contents: import datetime
  
  import tmdbsimple as tmdb
  from django.contrib.auth.models import User
  from django.db import models
  
  
  class Movie(models.Model):
      # General
      tmdb_id = models.IntegerField(unique=True)
      score = models.IntegerField(default=1)  # Every movie starts with a score of one (may be changed later)
      submitter = models.ForeignKey(User)
  
      # Movie metadata
      title = models.CharField(max_length=128)
      tagline = models.TextField(blank=True, null=True)
      overview = models.TextField(blank=True, null=True)
      release_date = models.DateField()
      budget = models.IntegerField(blank=True, null=True)
      vote_average = models.DecimalField(max_digits=2, decimal_places=1)
      vote_count = models.IntegerField()
      original_language = models.CharField(max_length=2)
  
      # Other
      poster_path = models.CharField(blank=True, null=True, max_length=64)
  
      @staticmethod
      def add_from_id(tmdb_id, submitter):
          movie_data = tmdb.Movies(tmdb_id).info()
          m = Movie.objects.create(
              tmdb_id=movie_data["id"],
              submitter=submitter,
              title=movie_data["title"],
              tagline=movie_data["tagline"],
              overview=movie_data["overview"],
              release_date=datetime.datetime.strptime(movie_data["release_date"], "%Y-%m-%d"),
              budget=movie_data["budget"],
              vote_average=movie_data["vote_average"],
              vote_count=movie_data["vote_count"],
              original_language=movie_data["original_language"],
              poster_path=movie_data["poster_path"],
          )
          m.save()
  
subject: Set default movie score to 1