Advertisement
MadCortez

models.py

May 16th, 2023
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from django.db import models
  2.  
  3. class Movie(models.Model):
  4.     title = models.CharField(max_length=100)
  5.     director = models.CharField(max_length=100)
  6.     release_date = models.DateField()
  7.  
  8.     class Meta:
  9.         app_label = 'movies'
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement