Menu
×
×
Correct!
Exercise:Django models are specified as classes in the models.py file. Specify a model called 'Member', with a field called 'firstname' with a maximum length of 100 characters:
from django.db import models
@(12)(models.Model):
firstname = models.CharField(@(14))
from django.db import models
class Member(models.Model):
firstname = models.CharField(max_length=100)
from django.db import models
class Member(models.Model):
firstname = models.CharField(max_length = 100)
from django.db import models
class Member(models.Model):
firstname = models.CharField(max_length= 100)
from django.db import models
class Member(models.Model):
firstname = models.CharField(max_length =100)
Not CorrectClick here to try again. Correct!Next ❯ |