
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
|pypi| |actions| |codecov| |downloads|
Base classes for participant locator form and processes
Other edc modules will use get_locator_model
and get_locator_model_cls
to access the
subject locator model class. get_locator_model
defaults to edc_locator.subject_locator
.
If you declare a custom locator model, add the name of the model to settings
in label_lower format::
# settings.py
SUBJECT_LOCATOR_MODEL="myapp.subject_locator"
When declaring a custom locator model, you may only need to declare a proxy
model class.
For example:
.. code-block:: python
# models.py
from edc_locator.models import SubjectLocator as BaseModel
class SubjectLocator(BaseModel):
class Meta:
proxy = True
verbose_name = "Subject Locator"
verbose_name_plural = "Subject Locators"
.. code-block:: python
# forms.py
# use the form class from edc_locator
Use the modeladmin mixin class SubjectLocatorModelAdminMixin
. Since you only want one
subject locator model accessible through admin in your EDC, unregister the default subject locator
before registering your custom modeladmin class.
.. code-block:: python
# admin.py
edc_locator_admin.unregister(DefaultSubjectLocator)
@admin.register(SubjectLocator, site=intecomm_prn_admin)
class SubjectLocatorAdmin(
SubjectLocatorModelAdminMixin,
SiteModelAdminMixin,
ModelAdminSubjectDashboardMixin,
SimpleHistoryAdmin,
):
pass
.. |pypi| image:: https://img.shields.io/pypi/v/edc-locator.svg :target: https://pypi.python.org/pypi/edc-locator
.. |actions| image:: https://github.com/clinicedc/edc-locator/action/workflows/build.yml/badge.svg :target: https://github.com/clinicedc/edc-locator/action/workflows/build.yml
.. |codecov| image:: https://codecov.io/gh/clinicedc/edc-locator/branch/develop/graph/badge.svg :target: https://codecov.io/gh/clinicedc/edc-locator
.. |downloads| image:: https://pepy.tech/badge/edc-locator :target: https://pepy.tech/project/edc-locator
FAQs
Base models, forms and admin for participant locator in clinicedc/edc projects
We found that edc-locator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.