outposts: only show proxy providers
This commit is contained in:
parent
20ffe833de
commit
9d5d99290c
|
@ -15,6 +15,6 @@ services:
|
||||||
- 4443:4443
|
- 4443:4443
|
||||||
environment:
|
environment:
|
||||||
PASSBOOK_HOST: https://your-passbook.tld
|
PASSBOOK_HOST: https://your-passbook.tld
|
||||||
PASSBOOK_INSECURE: 'true'
|
PASSBOOK_INSECURE: 'false'
|
||||||
PASSBOOK_TOKEN: token-generated-by-passbook
|
PASSBOOK_TOKEN: token-generated-by-passbook
|
||||||
```
|
```
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
{% for outpost in object_list %}
|
{% for outpost in object_list %}
|
||||||
<tr role="row">
|
<tr role="row">
|
||||||
<th role="columnheader">
|
<th role="columnheader">
|
||||||
<a href="{% url 'passbook_outposts:setup' outpost_pk=outpost.pk %}">{{ outpost.name }}</a>
|
<span>{{ outpost.name }}</span>
|
||||||
</th>
|
</th>
|
||||||
<td role="cell">
|
<td role="cell">
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -4,8 +4,8 @@ from django import forms
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from passbook.admin.fields import CodeMirrorWidget, YAMLField
|
from passbook.admin.fields import CodeMirrorWidget, YAMLField
|
||||||
from passbook.core.models import Provider
|
|
||||||
from passbook.outposts.models import Outpost
|
from passbook.outposts.models import Outpost
|
||||||
|
from passbook.providers.proxy.models import ProxyProvider
|
||||||
|
|
||||||
|
|
||||||
class OutpostForm(forms.ModelForm):
|
class OutpostForm(forms.ModelForm):
|
||||||
|
@ -13,7 +13,7 @@ class OutpostForm(forms.ModelForm):
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.fields["providers"].queryset = Provider.objects.all().select_subclasses()
|
self.fields["providers"].queryset = ProxyProvider.objects.all()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
|
Reference in New Issue