1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/docs/dev/modules/autocomplete_views.py.md
Stefan Pratter a0f1970fec Support 202211 (#1304)
* Carrier object implementation #909

* API keys: disabling of user account by a PeeringDB admin does not disable access via a User API key. Also no disable mech, only revoke. #1140

* Ops: django needs lightweight healthcheck route that confirms database connectivity #1284

* Ops: various indexes are needed #1285

* API requests with invalid Authentication headers should notify users in some way. #1220

* Allow user to change account username #1130

* UX to remove carriers from facilities more inline the other similar UX

* more UX fixes for removing carriers from facilities

* Cache hints are needed for optimal CDN use #970

* fixes Commandline tool "Run command" button gone #1278

* RIR status gets deleted when changes are made to the network #1279

* Improve MTU field #658

* CSRF cookie not set error from email confirmation view #1296

* expose CSP_CONNECT_SRC

* fix confirm email path checking in session middleware

* Ops: Emails to OPERATIONS_EMAIL need to be rate-limited #1282

* add website field to carrier ux

* website field on carrier optional with org fallback

* linting

* add *.google-analytics.com to CSP_CONNECT_SRC

* poetry relock

* fix issues with confirm-email reverse during session creation validation

* fix tests

* fix tests

* pin django-peeringdb to support_202211

* linting

* django ratelimit to <4

* regen docs

* fix automated net stats to only include networks with status `ok` #1283

* linting

* poetry lock

Co-authored-by: Matt Griswold <grizz@20c.com>
2023-01-18 10:32:46 -06:00

4.5 KiB

Generated from autocomplete_views.py on 2023-01-17 22:33:48.360745

peeringdb_server.autocomplete_views

Autocomplete views.

Handle most autocomplete functionality found in peeringdb.

Note: Quick search behavior is specified in search.py

Classes


AutocompleteHTMLResponse

AutocompleteHTMLResponse(dal_select2.views.Select2QuerySetView)

List options for a Select2 widget.

Methods

render_to_response

def render_to_response(self, context)

Return a JSON response in Select2 format.


CommandLineToolHistoryAutocomplete

CommandLineToolHistoryAutocomplete(dal_select2.views.Select2QuerySetView)

Autocomplete for command line tools that were run via the admin ui.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


DeletedVersionAutocomplete

DeletedVersionAutocomplete(dal_select2.views.Select2QuerySetView)

Autocomplete that will show reversion versions where an object was set to deleted.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


ExchangeAutocomplete

ExchangeAutocomplete(peeringdb_server.autocomplete_views.AutocompleteHTMLResponse)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


ExchangeAutocompleteJSON

ExchangeAutocompleteJSON(dal_select2.views.Select2QuerySetView)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


FacilityAutocomplete

FacilityAutocomplete(peeringdb_server.autocomplete_views.AutocompleteHTMLResponse)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


FacilityAutocompleteForExchange

FacilityAutocompleteForExchange(peeringdb_server.autocomplete_views.FacilityAutocomplete)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


FacilityAutocompleteForNetwork

FacilityAutocompleteForNetwork(peeringdb_server.autocomplete_views.FacilityAutocomplete)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


FacilityAutocompleteJSON

FacilityAutocompleteJSON(dal_select2.views.Select2QuerySetView)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


GrappelliHandlerefAutocomplete

GrappelliHandlerefAutocomplete(peeringdb_server.autocomplete_views.PDBAdminGrappelliAutocomplete)

Make sure that the auto-complete fields managed by grappelli in django admin exclude soft-deleted objects.

IXLanAutocomplete

IXLanAutocomplete(peeringdb_server.autocomplete_views.AutocompleteHTMLResponse)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


NetworkAutocomplete

NetworkAutocomplete(peeringdb_server.autocomplete_views.AutocompleteHTMLResponse)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


OrganizationAutocomplete

OrganizationAutocomplete(peeringdb_server.autocomplete_views.AutocompleteHTMLResponse)

List options for a Select2 widget.

Methods

get_queryset

def get_queryset(self)

Filter the queryset with GET['q'].


get_result_label

def get_result_label(self, item)

Return the label of a result.


PDBAdminGrappelliAutocomplete

PDBAdminGrappelliAutocomplete(grappelli.views.related.AutocompleteLookup)

AutocompleteLookup

ToolHistory

ToolHistory(peeringdb_server.autocomplete_views.CommandLineToolHistoryAutocomplete)

Autocomplete for command line tools that were run via the admin ui.