Skip to content

Commit

Permalink
Merge pull request #598 from ProtixIT/remove-obsolete-test-models
Browse files Browse the repository at this point in the history
Remove obsolete test models
  • Loading branch information
foarsitter authored Mar 22, 2024
2 parents fc49c63 + 9df3df9 commit 87a9466
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,41 +192,6 @@ class Meta:
abstract = True


class NoRendered(models.Model):
"""
Test that the no_excerpt_field keyword arg works. This arg should
never be used except by the South model-freezing.
"""
body = SplitField(no_excerpt_field=True)


class AuthorMixin:
def by_author(self, name):
return self.filter(author=name)


class PublishedMixin:
def published(self):
return self.filter(published=True)


def unpublished(self):
return self.filter(published=False)


class ByAuthorQuerySet(models.query.QuerySet, AuthorMixin):
pass


class FeaturedManager(models.Manager):
def get_queryset(self):
kwargs = {}
if hasattr(self, "_db"):
kwargs["using"] = self._db
return ByAuthorQuerySet(self.model, **kwargs).filter(feature=True)


class AbstractTracked(models.Model):
number = 1

Expand Down

0 comments on commit 87a9466

Please sign in to comment.