我想在 django 中创建一对多模型。例如我有
class UserProfile(models.Model):
user = models.OneToOneField(User)
mobile = 1 #I want OneToMany
website = models.URLField()
class Mobile(models.Model):
phone_number = models.CharField(min_length=7, max_length=20)
description = models.CharField(min_length=7, max_length=20)
我怎么能做这项工作?