outposts: only show proxy providers

This commit is contained in:
Jens Langhammer 2020-09-18 21:46:14 +02:00
parent 20ffe833de
commit 9d5d99290c
3 changed files with 4 additions and 4 deletions

View file

@ -15,6 +15,6 @@ services:
- 4443:4443
environment:
PASSBOOK_HOST: https://your-passbook.tld
PASSBOOK_INSECURE: 'true'
PASSBOOK_INSECURE: 'false'
PASSBOOK_TOKEN: token-generated-by-passbook
```

View file

@ -50,7 +50,7 @@
{% for outpost in object_list %}
<tr role="row">
<th role="columnheader">
<a href="{% url 'passbook_outposts:setup' outpost_pk=outpost.pk %}">{{ outpost.name }}</a>
<span>{{ outpost.name }}</span>
</th>
<td role="cell">
<span>

View file

@ -4,8 +4,8 @@ from django import forms
from django.utils.translation import gettext_lazy as _
from passbook.admin.fields import CodeMirrorWidget, YAMLField
from passbook.core.models import Provider
from passbook.outposts.models import Outpost
from passbook.providers.proxy.models import ProxyProvider
class OutpostForm(forms.ModelForm):
@ -13,7 +13,7 @@ class OutpostForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields["providers"].queryset = Provider.objects.all().select_subclasses()
self.fields["providers"].queryset = ProxyProvider.objects.all()
class Meta: