diff --git a/cms/qcombine.py b/cms/qcombine.py index 8409116..64ac0ef 100644 --- a/cms/qcombine.py +++ b/cms/qcombine.py @@ -126,7 +126,7 @@ class Manager(type): return qs -class FakeModel(Routable,metaclass=Manager): +class GenericModel(Routable,metaclass=Manager): """ This class is used to register a route for multiple models to a website. A QCombine is created with qs for all given models when objects diff --git a/cms/routes.py b/cms/routes.py index 3c262db..b213bc4 100644 --- a/cms/routes.py +++ b/cms/routes.py @@ -189,7 +189,7 @@ class SearchRoute(Route): @classmethod def get_queryset(cl, model, request, **kwargs): q = request.GET.get('q') or '' - if issubclass(model, qcombine.FakeModel): + if issubclass(model, qcombine.GenericModel): models = model.models return qcombine.QCombine( *(cl.__search(model, q) for model in models) diff --git a/notes.md b/notes.md index 2d36b43..d9b894e 100644 --- a/notes.md +++ b/notes.md @@ -33,7 +33,7 @@ - calendar - article list with the focus -> set html attribute based on values that are public - - tags: allow tags_url route QCombine + - rename qcombine.FakeModel -> GenericModel? - website: - diffusions: @@ -47,7 +47,7 @@ - load complete week for a schedule? - finish that fucking website - list of played diffusions and tracks when non-stop; - - search field -- section + - search input in a section diff --git a/website/models.py b/website/models.py index 02121f3..8e3193f 100644 --- a/website/models.py +++ b/website/models.py @@ -129,7 +129,7 @@ class Sound (cms.RelatedPost): ) -class Publications (qcombine.FakeModel): +class Publications (qcombine.GenericModel): """ Combine views """