mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Removed model_package test dependency on contrib.sites
This commit is contained in:
parent
f233bf47dd
commit
f05b03f3d7
2 changed files with 7 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue