mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-23 21:41:57 +00:00
* with that addition it is possible to restrict records to an special ip or an ip network
16 lines
416 B
Python
16 lines
416 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2024 Graz University of Technology.
|
|
#
|
|
# invenio-config-tugraz is free software; you can redistribute it and/or
|
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
# details.
|
|
|
|
"""Custom fields."""
|
|
|
|
|
|
from invenio_records_resources.services.custom_fields import BooleanCF
|
|
|
|
ip_network = BooleanCF(name="ip_network")
|
|
single_ip = BooleanCF(name="single_ip")
|