Skip to content

Commit 87a9466

Browse files
authored
Merge pull request jazzband#598 from ProtixIT/remove-obsolete-test-models
Remove obsolete test models
2 parents fc49c63 + 9df3df9 commit 87a9466

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

tests/models.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -192,41 +192,6 @@ class Meta:
192192
abstract = True
193193

194194

195-
class NoRendered(models.Model):
196-
"""
197-
Test that the no_excerpt_field keyword arg works. This arg should
198-
never be used except by the South model-freezing.
199-
200-
"""
201-
body = SplitField(no_excerpt_field=True)
202-
203-
204-
class AuthorMixin:
205-
def by_author(self, name):
206-
return self.filter(author=name)
207-
208-
209-
class PublishedMixin:
210-
def published(self):
211-
return self.filter(published=True)
212-
213-
214-
def unpublished(self):
215-
return self.filter(published=False)
216-
217-
218-
class ByAuthorQuerySet(models.query.QuerySet, AuthorMixin):
219-
pass
220-
221-
222-
class FeaturedManager(models.Manager):
223-
def get_queryset(self):
224-
kwargs = {}
225-
if hasattr(self, "_db"):
226-
kwargs["using"] = self._db
227-
return ByAuthorQuerySet(self.model, **kwargs).filter(feature=True)
228-
229-
230195
class AbstractTracked(models.Model):
231196
number = 1
232197

0 commit comments

Comments
 (0)