Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/models.py
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
class DepositClient(User): | class DepositClient(User): | ||||
"""Deposit client | """Deposit client | ||||
""" | """ | ||||
collections = ArrayField(models.IntegerField(), null=True) | collections = ArrayField(models.IntegerField(), null=True) | ||||
objects = UserManager() | objects = UserManager() # type: ignore | ||||
# this typing hint is due to a mypy/django-stubs limitation, | |||||
# see https://github.com/typeddjango/django-stubs/issues/174 | |||||
provider_url = models.TextField(null=False) | provider_url = models.TextField(null=False) | ||||
domain = models.TextField(null=False) | domain = models.TextField(null=False) | ||||
class Meta: | class Meta: | ||||
db_table = 'deposit_client' | db_table = 'deposit_client' | ||||
def __str__(self): | def __str__(self): | ||||
return str({ | return str({ | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |