Saravanan666/pypi-org huggingface dataset:
Package: django-jazzmin
Django jazzmin (Jazzy Admin)Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzyInstallationpip install django-jazzminDocumentationSeeDocumentationorTest AppDemoLive demohttps://django-jazzmin.herokuapp.com/adminUsername:test@test.comPassword: testNote: Data resets nightlyFeaturesDrop-in admin skin, all configuration optionalCustomisable side menuCustomisable top menuCustomisable user menu4 different Change form templates (horizontal tabs, vertical tabs, carousel, collapsible)Bootstrap 4 modal (instead of the old popup window, optional)Search bar for any given model adminCustomisable UI (via Live UI changes, or custom CSS/JS)ResponsiveSelect2 drop-downsBootstrap 4 & AdminLTE UI componentsUsing the latestadminlte+bootstrapScreenshotsDashboardList viewChange form templatesCollapsed side menuExpanded side menuHorizontal tabsVertical tabsCollapsibleCarouselRelated modalHistory pageLogin viewUI CustomiserMobile layoutTablet layoutAdmin Docs (if installed)ThanksThis was initially a Fork ofhttps://github.com/wuyue92tree/django-adminlte-uithat we refactored so much we thought it
deserved its own package, big thanks to @wuyue92tree for all of his initial hard work, we are still patching into that
project were possible, but this project has taken a different direction.The javascript modal implementation uses some code fromdjango-admin-interface, so thanks to @fabiocaccamo for original workBased on AdminLTE 3:https://adminlte.io/Using Bootstrap 4:https://getbootstrap.com/Using Font Awesome 5:https://fontawesome.com/
Package: django-jazzmin-admin-rangefilter
django-jazzmin-admin-rangefilterA Django app that adds a filter by date range and numeric range to the Django Jazzmin admin UI.RequirementsPython 2.7+ or Python 3.6+Django 1.8+InstallationUse your favorite Python package manager to install the app from PyPI, e.g.Example:pip installdjango-jazzmin-admin-rangefilterAddrangefiltertoINSTALLED_APPS:Example:INSTALLED_APPS=(...'rangefilter',...)Example usageIn adminfromdjango.contribimportadminfromrangefilter.filtersimportDateRangeFilter,DateTimeRangeFilter,NumericRangeFilterfrom.modelsimportPost@admin.register(Post)classPostAdmin(admin.ModelAdmin):list_filter=(('created_at',DateRangeFilter),('updated_at',DateTimeRangeFilter),('num_value',NumericRangeFilter),)# If you would like to add a default range filter# method pattern "get_rangefilter_{field_name}_default"defget_rangefilter_created_at_default(self,request):return(datetime.date.today,datetime.date.today)# If you would like to change a title range filter# method pattern "get_rangefilter_{field_name}_title"defget_rangefilter_created_at_title(self,request,field_path):return'custom title'Support Content-Security-PolicyFor Django 1.8+, ifdjango-cspis installed, nonces will be added to style and script tags.
The settingADMIN_RANGEFILTER_NONCE_ENABLEDcontrols this behavior.INSTALLED_APPS=(...'rangefilter','csp',...)
Package: django-jbank
django-jbankBasic (Finnish) bank file format support for Django projects. Django 4 support and unit test coverage 51%.FeaturesFinnish banks:
* Parsing TO/TITO files
* Parsing SVM/KTL files
* Parsing camt.053.001.02 files
* Parsing camt.054.001.02 files
* Parsing pain.002.001.03 files
* Generating pain.001.001.03 filesSpanish banks:
* Parsing AEB43 statement filesPre-Requisitessudo apt install -y xmlsec1 libxmlsec1-dev libssl-dev libffi-devInstallpip install django-jbankTested BanksPOP-PankkiDanskebank FinlandSäästöpankkiAktiaNordeaConverting p12 to PEM formatsopenssl pkcs12 -in WSNDEA1234.p12 -out WSNDEA1234.pemopenssl rsa -in WSNDEA1234.pem -outform PEM -out prod_private_key.pemopenssl x509 -in WSNDEA1234.pem -outform PEM -out prod_public_key_cert.pemChanges4.0.1:
+ Upgraded component requirements to latest lxml (4.9.1), etc.3.2.0:
+ Django 3.0 support, prospector fixes
Package: django-je
This is a simple library that performs
basic django and bootstrap component.Installationpip install djbsUsage:A guide to using the djbs cli is as followspython -m djbs startapp <app-name>The functions in this library are:new app djangonew component bootstrapLicenseCopyright 2022 jamalelkhdadiThis repository is licensed under MIT license.
See LICENSE for details.Change Log0.0.1 (09/08/2022)
Package: django-jellyglass
django-jellyglassis a reusable Django application to act as a better
honeypot.InstallationUse PIP to installdjango-jellyglassfrom PyPI:$ pip install django-jellyglassAddjellyglass.apps.JellyGlassConfigto yourINSTALLED_APPS:INSTALLED_APPS = [
    # ...
    'jellyglass.apps.JellyGlassConfig',
]Add the followingurlpatternsto your root url configuration:urlpatterns = [
    # ...
    url(r'^', include('jellyglass.urls', namespace='jellyglass')),
    # ...
]Run migrations:$ python manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, jellyglass, sessions
Running migrations:
  Rendering model states... DONE
  Applying jellyglass.0001_initial... OKSettingsEnable or disable the Django admin with:JELLYGLASS_DJANGO = TrueEnable or disable the Wordpress admin with:JELLYGLASS_WORDPRESS = TrueEnable or disable the recording of sensitive data with:JELLYGLASS_HIDE_SENSITIVE_POST_PARAMETERS = FalseIn case you’re behind a reverse proxy (e.g. Apache, Nginx) this setting can be
used to specify where the actualREMOTE_ADDRis stored:JELLYGLASS_REMOTE_ADDR_KEY = 'REMOTE_ADDR'
# For a header 'X-REAL-IP' this would be 'HTTP_X_REAL_IP'
Package: django-jet2
Next Generation django-jet2 (Modern template for Django admin interface with improved functionality)Home page:https://github.com/tikservices/django-jet2Documentation:http://django-jet2.rtfd.io/PyPI:https://pypi.python.org/pypi/django-jet2Support:support@tik.tnWhy Django JET?New fresh lookResponsive mobile interfaceUseful admin home pageMinimal template overridingEasy integrationThemes supportAutocompletionHandy controlsScreenshotsIndex dashboardChangelistSidemenuInstallationDownload and install latest version of Django JET:pipinstalldjango-jet2# oreasy_installdjango-jet2Add ‘jet’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘django.contrib.admin’):INSTALLED_APPS=(...'jet','django.contrib.admin',)Make suredjango.template.context_processors.requestcontext processor is enabled in settings.py (Django 1.8+ way):TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'APP_DIRS':True,'OPTIONS':{'context_processors':[...'django.template.context_processors.request',...],},},]Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('admin/',include(admin.site.urls)),...)Create database tables:pythonmanage.pymigratejetCollect static if you are in production environment:pythonmanage.pycollectstaticClear your browser cacheDashboard installationNoteDashboard is located into a separate application. So after a typical JET installation it won’t be active.
To enable dashboard application follow these steps:Add ‘jet.dashboard’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘jet’):INSTALLED_APPS=(...'jet.dashboard','jet','django.contrib.admin',...)Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('jet/dashboard/',include('jet.dashboard.urls','jet-dashboard')),# Django JET dashboard URLSpath('admin/',include(admin.site.urls)),...)For Google Analytics widgets onlyinstall python package:pip install google-api-python-client==1.4.1Create database tables:pythonmanage.pymigratedashboardCollect static if you are in production environment:pythonmanage.pycollectstaticLicenseDjango JET (which Django JET2 is based on) has two kinds of licenses: open-source (AGPLv3) and commercial. Please note that using AGPLv3
code in your programs make them AGPL compatible too. So if you don’t want to comply with that we can provide you
a commercial license (visit Home page). The commercial license is designed for using Django JET in commercial products
and applications without the provisions of the AGPLv3.
Package: django-jet-reboot
Note: More collaborators are needed to maintain the project, feel free to contact@assem-ch.Django JET Reboot (Django 3.x and 4.x )Django Jet Reboot is modern template for Django admin interface with improved functionality. Rebooting the original project :django-jet.We focus only on django >= 3.0 & Python >= 3.7. We can’t support old versions.Why Django JET?New fresh lookResponsive mobile interfaceUseful admin home pageMinimal template overridingEasy integrationThemes supportAutocompletionHandy controlsScreenshotsInstallationDownload and install latest version of Django JET Reboot:pipinstalldjango-jet-rebootAdd ‘jet’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘django.contrib.admin’):INSTALLED_APPS=(...'jet','django.contrib.admin',)Make suredjango.template.context_processors.requestcontext processor is enabled in settings.py (Django 1.8+ way):TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'APP_DIRS':True,'OPTIONS':{'context_processors':[...'django.template.context_processors.request',...],},},]Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('admin/',include(admin.site.urls)),...)Create database tables:pythonmanage.pymigratejetCollect static if you are in production environment:pythonmanage.pycollectstaticClear your browser cacheDashboard installationNoteDashboard is located into a separate application. So after a typical JET installation it won’t be active.
To enable dashboard application follow these steps:Add ‘jet.dashboard’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘jet’):INSTALLED_APPS=(...'jet.dashboard','jet','django.contrib.admin',...)Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('jet/dashboard/',include('jet.dashboard.urls','jet-dashboard')),# Django JET dashboard URLSpath('admin/',include(admin.site.urls)),...)For Google Analytics widgets onlyinstall python package:pip install google-api-python-client==1.4.1Create database tables:pythonmanage.pymigratedashboardCollect static if you are in production environment:pythonmanage.pycollectstatic
Package: django-jet-reborn
Note: More collaborators are needed to maintain the project, feel free to contact@assem-ch.Django JET Reboot (Django 3.x and 4.x )Django Jet Reboot is modern template for Django admin interface with improved functionality. Rebooting the original project :django-jet.We focus only on django >= 3.0 & Python >= 3.7. We can’t support old versions.Why Django JET?New fresh lookResponsive mobile interfaceUseful admin home pageMinimal template overridingEasy integrationThemes supportAutocompletionHandy controlsScreenshotsInstallationDownload and install latest version of Django JET Reboot:pipinstalldjango-jet-rebootAdd ‘jet’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘django.contrib.admin’):INSTALLED_APPS=(...'jet','django.contrib.admin',)Make suredjango.template.context_processors.requestcontext processor is enabled in settings.py (Django 1.8+ way):TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'APP_DIRS':True,'OPTIONS':{'context_processors':[...'django.template.context_processors.request',...],},},]Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('admin/',include(admin.site.urls)),...)Create database tables:pythonmanage.pymigratejetCollect static if you are in production environment:pythonmanage.pycollectstaticClear your browser cacheDashboard installationNoteDashboard is located into a separate application. So after a typical JET installation it won’t be active.
To enable dashboard application follow these steps:Add ‘jet.dashboard’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘jet’):INSTALLED_APPS=(...'jet.dashboard','jet','django.contrib.admin',...)Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('jet/dashboard/',include('jet.dashboard.urls','jet-dashboard')),# Django JET dashboard URLSpath('admin/',include(admin.site.urls)),...)For Google Analytics widgets onlyinstall python package:pip install google-api-python-client==1.4.1Create database tables:pythonmanage.pymigratedashboardCollect static if you are in production environment:pythonmanage.pycollectstatic
Package: django-jingo-offline-compressor
(c) Peter Bengtsson, <mail@peterbe.com>, 2012
License: MITFor elitists (e.g. me) who use
[jingo](https://github.com/jbalogh/jingo) to connect jinja2 with
Django a major drawback is that you can’t do offline compression if
you use
[django_compressor](https://github.com/jezdez/django_compressor).Thecompresscommand that comes withdjango_compressoronly works
for regular Django templates. :(
Note though, that you can happily usejingowithdjango_compressorbut it only works its magic during runtime. This package aims to solve
that with a new command calledcompress_jingo.To installFirst install it by:` pip installdjango-jingo-offline-compressor`To start with, this assumes that you havedjango_compressorandjingoset up and working.Addjingo_offline_compressorto yourINSTALLED_APPS.To runJust like you’d run regulardjango_compressoryou now run:` ./manage.py compress_jingo `And remember, unless you haveCOMPRESS_OFFLINE = Truein your
settings you might have to do:` ./manage.py compress_jingo--force`That should now have created all the minified and concatenated files
in yourSTATIC_ROOTin a sub-directory calledCACHE.Note:If you have other apps inINSTALLED_APPSthat have been
added toJINGO_EXCLUDE_APPSsome of their templates might actually
be included in warnings when you runcompress_jingo. Just ignore at
will.What’s nextIt’s early days but hopefully if this stabilize and prove its
existence. Hopefully it can lead to a decent refactor and to have
tests so it can be patched upstream todjango_compressor. Hint hint
@jezdez, keep an eye on me :)
Package: django-jinja
Simple and nonobstructive jinja2 integration with Django.Documentation:http://niwinz.github.io/django-jinja/latest/How to install?You can install it with pip:pipinstalldjango-jinjaHow to run tests as a developerInstall the Tox automation tool (outside a virtualenv), thentoxTox will create virtualenvs for different interpreter versions and run the test suite.
Package: django_jinja_helpers
Helpers for using django-jinja (https://github.com/niwinz/django-jinja) withdjango-crispy-formsdjango-webpack-loaderInstallationTo get the latest stable release from PyPipipinstalldjango_jinja_helpersInstall the appINSTALLED_APPS=(...,'django_jinja_helpers',)UsageCallrender_bundle()in your template<!DOCTYPE html><html><head>{{ render_bundle('styles', 'css') }}</head><body></body></html>Callcrispy()in your template<divclass="container">{{ crispy(form) }}</div>
Package: django-jinja-markdown
Django-Jinja(Jinja2) extension and filter to parse
markdown text in templates.RequirementsDjango1.8 or 1.9Django-JinjaPython-MarkdownInstallationInstall django-jinja-markdown:pipinstalldjango-jinja-markdownAdddjango_jinja_markdowntoINSTALLED_APPS.To be able to use the{% markdown %}tag you should add the Jinja extension
to yourdjango_jinjaTEMPLATES extensions list:TEMPLATES=[{'BACKEND':'django_jinja.backend.Jinja2','OPTIONS':{'extensions':['django_jinja_markdown.extensions.MarkdownExtension',],}},]Basic UseExamples of using filter in template:{{content|markdown}}{{markdown('this is **bold**')}}Or with additional settings:{{content|markdown(extensions=['nl2br',])}}{{markdown(content,extensions=['nl2br',])}}Example of using extension:{%markdown%}Text which will get converted with Markdown.{%endmarkdown%}LicenseThis software is licensed under The MIT License (MIT). For more
information, read the file LICENSE.HistoryForked in 2016 from thejingo-markdownproject.
Please see CHANGELOG for more history.
Package: django-jinx
Jinx什么是JinxJinx是一个Django项目国际化的一站式辅助工具Django国际化常常包含以下流程检查翻译标记提取词条机器翻译词条人工检验词条(将机器翻译好的词条导出交付给相应的人员进行校对)将确认无误的词条写入po文件编译可以看到国际化不是一蹴而就的, 而且每个项目的国际化流程都不尽相同那么jinx可以帮助你完成以下工作检查翻译标记由Marker负责提取词条由Extractor负责, 或者 利用Django自带makemessages命令进行词条提取机器翻译词条由Translator负责人工检验词条由Exporter导出json文件, 交付给负责人将确认无误的词条写入po文件由Translator负责编译由Compiler负责, 或者 利用Django自带compilemessages命令进行编译快速开始安装因为暂时未提供pip的方式, 可以使用git clone的方式安装, 推荐使用poetry安装依赖gitclonehttps://github.com/kiritoscs/jinxcdjinx
poetryinstall如果你不想使用poetry, 可以使用pip安装依赖参考pyproject.toml里的[tool.poetry.dependencies]生成配置文件mvjinx.template.tomljinx.toml1.检查翻译标记pythonjinx.pymarker-d${YOUR_DJANGO_PROJECT_DIR}YOUR_DJANGO_PROJECT_DIR: 你的Django项目目录详细配置参考配置说明标记之后, 需要检查一下标记是否正确, 有时候会出现标记错误的情况, 具体参考Marker2.提取词条PlanA: 利用extractor提取词条, 本质是基于marker的结果进行提取, 所以需要先检查标记结果pythonjinx.pyextractor-t${YOUR_DJANGO_PROJECT_DIR}-l${YOUR_PO_FILE}YOUR_DJANGO_PROJECT_DIR: 你的Django项目目录YOUR_PO_FILE: 你的po文件目录, 也支持填入locale目录, 会自动寻找locale目录下的对应语言po文件PlanB: Django自带的makemessages命令(推荐)pythonmanage.pymakemessages-l${YOUR_LANGUAGE}或者djano-adminmakemessages-l${YOUR_LANGUAGE}3.机器翻译词条pythonjinx.pytranslator-p${YOUR_PO_FILE}-o{YOUR_OFFICIAL_DICT_DIR}YOUR_PO_FILE: 你的po文件目录, 也支持填入locale目录, 会自动寻找locale目录下的对应语言po文件YOUR_OFFICIAL_DICT_DIR: 你的官方词典目录, JSON格式, 用于翻译时的参考, 最大匹配翻译, 参考官方词典official_dict默认白嫖使用GoogleAPI翻译, 略慢目前内置了以下翻译来源youdao_client, 有道翻译服务, 需要自己去申请google_api, 暂时通过爬虫的形式使用, 速度较慢详细配置参考配置说明4.人工检验词条导出词条pythonjinx.pyexporter-p${YOUR_PO_FILE}-e${YOUR_OUTPUT_DIR}YOUR_PO_FILE: 你的po文件目录, 也支持填入locale目录, 会自动寻找locale目录下的对应语言po文件YOUR_OUTPUT_DIR: 你的输出文件名, 暂时支持json, 默认为contents.json5.将确认无误的词条写入po文件pythonjinx.pytranslator-p${YOUR_PO_FILE}-o${YOUR_FINAL_JSON_FILE}-moverwriteYOUR_PO_FILE: 你的po文件目录, 也支持填入locale目录, 会自动寻找locale目录下的对应语言po文件YOUR_FINAL_JSON_FILE: 你的最终json文件, 用于更新po文件6.编译PlanA: 利用compiler编译pythonjinx.pycompiler-l${YOUR_PO_FILE}YOUR_PO_FILE: 你的po文件目录, 也支持填入locale目录, 会自动寻找locale目录下的对应语言po文件PlanB: 利用Django compilemessages编译pythonmanage.pycompilemessages或者djano-admincompilemessages配置说明[language]# 当前项目语言, 枚举参考 common/constants.py/LanguageEnumcurrent="zh-CN"# 翻译目标语言, 枚举参考 common/constants.py/LanguageEnumdest="en"[marker]# 标记器## 严格模式, 存在f-string格式化的需要国际化的字符串时, 会跳过该文件的标记strict_mode=false[marker.filter]# 过滤器, 不想翻译的文件或者目录## 过滤目录exclude_paths=["web","scripts","migrations","tests"]## 过滤文件exclude_files=["manage.py","urls.py","wsgi.py","tests.py"][marker.translation_func]# 默认的翻译函数配置## 默认的翻译函数default="ugettext_lazy"## 翻译函数别名alias="_"[marker.str_conditions.token]# token(单词)的字符串条件配置## 包含contains=[]## 不包含not_contains=[]## 以...开头startswith=[]## 不以...开头not_startswith=[]## 以...结尾endswith=[]## 不以...结尾not_endswith=["\"\"\"","'''"][marker.str_conditions.source_line]# source_line(源码)的字符串条件配置## 包含contains=[]## 不包含not_contains=["logger","__name__"]## 以...开头startswith=[]## 不以...开头not_startswith=[]## 以...结尾endswith=[]## 不以...结尾not_endswith=["\"\"\"","'''"][translator]# 翻译器provider="google_api"mode="update"[youdao_client]# 有道翻译客户端配置url="https://openapi.youdao.com/api"app_key=""app_secret=""# domain是有道翻译的一个参数, 用于区分不同的翻译场景, 一般不需要修改# 支持的领域参考: common/constants.py/YouDaoSupportDomainEnumdomain="general"
Package: django-jlog
A simple logging package that helps you save logs by days.Package is intended to write logs if you work with requests and responses during integration with third party APIsDate and time, log type (request/response) are added to every lineInstallationpip install django-jlogSet folder name in settings.py (by default it islogs)LOG_FOLDER_NAME='daily_logs'Usagefrom jlog.file import Log


Log.request('write here your request data', ['for', 'example'])

Log.response('write here your response text message', {"testName": "Javid"})
Package: django-job-board
Django Job BoardJob Board is a Django applicaiton that you can use in any django 3 softwareDetailed documentation comming soonQuick startAdd "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'job_board',
]Include the polls URLconf in your project urls.py like this::path('job_board/', include('job_board.urls')),Runpython manage.py migrateto create the job_board models.Start the development server and visithttp://127.0.0.1:8000/admin/Visithttp://127.0.0.1:8000/job_board/to explore job_board.Dependenciesdjangorestframeworkdjango-tinymcedjango-userforeignkeypillow andpyjwt
Package: django-jo-blog-app
blog is an app that enables users to publish posts across the the platform.Detailed documentation is in the “docs” directory.Quick startAdd “blog” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'blog',
    'contact',
]Include the blog URLconf in your project urls.py like this:path('blog/', include('blog.urls')),
path('contact/', include('contact.urls', namespace='contact')),Runpython manage.py migrateto create the post models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a Post (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/to participate in the blog.
Package: django-john-polls
Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “polls” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'polls',
]Include the polls URLconf in your project urls.py like this:path('polls/', include('polls.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: django-joining
Usage:```pythonfrom django.db import modelsfrom django_joining import JoiningKeyclass ModelA(models.Model):foo = models.IntegerField()bar = models.IntegerField()baz = models.TextField()model_b = JoiningKey('ModelB',from_fields=['foo', 'bar'],to_fields=['qux', 'quux'],related_name='model_a_set')class ModelB(models.Model):qux = models.IntegerField()quux = models.IntegerField()quuux = models.TextField()ModelA.objects.filter(model_b__quuux='test').select_related('model_b')...ModelB.objects.prefetch_related('model_a_set')...```