File tree 1 file changed +0
-26
lines changed
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -201,32 +201,6 @@ class NoRendered(models.Model):
201
201
body = SplitField (no_excerpt_field = True )
202
202
203
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
-
230
204
class AbstractTracked (models .Model ):
231
205
number = 1
232
206
You can’t perform that action at this time.
0 commit comments