Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #33: Fix failing migrations on fresh database #34

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions netbox_config_diff/views/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from core.tables import JobTable
from django.contrib import messages
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404, redirect, render
from netbox.constants import RQ_QUEUE_DEFAULT
Expand Down Expand Up @@ -300,9 +300,7 @@ def post(self, request, pk):


class JobListView(generic.ObjectListView):
queryset = Job.objects.filter(
object_type=ContentType.objects.get(app_label="netbox_config_diff", model="configurationrequest")
)
queryset = Job.objects.filter(Q(name__contains="push_configs") | Q(name__contains="collect_diffs"))
filterset = JobFilterSet
filterset_form = JobFilterForm
table = JobTable
Expand Down