Skip to content

Commit 6adf5ae

Browse files
authored
Merge pull request #3773 from teovin/registrar-notes
add notes field to registrar model
2 parents 59fa9a4 + 4b15e21 commit 6adf5ae

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

perma_web/perma/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class RegistrarAdmin(SimpleHistoryAdmin):
471471
list_editable = ['status']
472472
list_filter = ('status', 'unlimited', 'nonpaying', 'cached_subscription_status', 'orgs_private_by_default')
473473
fieldsets = (
474-
(None, {'fields': ('name', 'email', 'website', 'address', 'status', 'tags', 'orgs_private_by_default')}),
474+
(None, {'fields': ('name', 'email', 'website', 'address', 'status', 'tags', 'orgs_private_by_default', 'notes')}),
475475
("Tier", {'fields': ('nonpaying', 'base_rate', 'cached_subscription_started', 'cached_subscription_status', 'cached_subscription_rate', 'unlimited', 'link_limit', 'link_limit_period', 'bonus_links')}),
476476
)
477477
inlines = [
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 4.2.23 on 2026-05-08 12:54
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('perma', '0062_auto_20260114_1858'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='historicalregistrar',
15+
name='notes',
16+
field=models.TextField(blank=True),
17+
),
18+
migrations.AddField(
19+
model_name='registrar',
20+
name='notes',
21+
field=models.TextField(blank=True),
22+
),
23+
]

perma_web/perma/models/registrar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Registrar(CustomerModel):
3030
orgs_private_by_default = models.BooleanField(default=False, help_text="Whether new orgs created for this registrar default to private links.")
3131

3232
address = models.CharField(max_length=500, blank=True, null=True)
33+
notes = models.TextField(blank=True)
3334
manual_sort_order = models.IntegerField(default=0, db_index=True)
3435

3536
link_count = models.IntegerField(default=0) # A cache of the number of links under this registrars's purview (sum of all associated org links)

0 commit comments

Comments
 (0)