1
0
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:
Claude Paroz
2014-12-23 18:09:55 +01:00
parent f233bf47dd
commit f05b03f3d7
2 changed files with 7 additions and 13 deletions

View File

@@ -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)