mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed model_package test dependency on contrib.sites
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
from django.contrib.sites.models import Site
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Site(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
class Article(models.Model):
|
||||
sites = models.ManyToManyField(Site)
|
||||
headline = models.CharField(max_length=100)
|
||||
|
||||
Reference in New Issue
Block a user