Verified Commit 10e7fe6a authored by Elger Jonker's avatar Elger Jonker

Fix #131 added notes fields to organizations

parent 720eacd3
......@@ -279,7 +279,7 @@ class OrganizationAdmin(ActionMixin, ImportExportModelAdmin, admin.ModelAdmin):
search_fields = (['name', 'country', 'type__name'])
list_filter = ['type__name', 'country', 'created_on', 'is_dead', 'is_dead_since'][::-1]
fields = ('name', 'type', 'country', 'twitter_handle', 'created_on', 'wikidata', 'wikipedia',
fields = ('name', 'type', 'country', 'internal_notes', 'twitter_handle', 'created_on', 'wikidata', 'wikipedia',
'is_dead', 'is_dead_since', 'is_dead_reason')
inlines = [CoordinateAdminInline, UrlAdminInline, OrganizationRatingAdminInline, PromiseAdminInline] #
......@@ -427,7 +427,7 @@ class UrlAdmin(ActionMixin, ImportExportModelAdmin, nested_admin.NestedModelAdmi
fieldsets = (
(None, {
'fields': ('url', 'organization', 'created_on', 'onboarded', 'onboarding_stage')
'fields': ('url', 'organization', 'internal_notes', 'created_on', 'onboarded', 'onboarding_stage')
}),
('DNS', {
'fields': ('uses_dns_wildcard', ),
......
# Generated by Django 2.1.3 on 2018-11-19 11:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organizations', '0038_auto_20180824_0959'),
]
operations = [
migrations.AddField(
model_name='organization',
name='internal_notes',
field=models.TextField(blank=True, help_text="These notes can contain information on WHY this organization was added. Can be handy if it's not straightforward. This helps with answering questions why the organization was added lateron. These notes will not be published, but are also not secret.", max_length=500, null=True),
),
migrations.AddField(
model_name='url',
name='internal_notes',
field=models.TextField(blank=True, help_text="These notes can contain information on WHY this URL was added. Can be handy if it's not straightforward. This helps with answering questions why the URL was added lateron. For example: some urls are owned via a 100% shareholder construction by a state company / municipality while the company itself is private. These notes will not be published, but are also not secret.", max_length=500, null=True),
),
]
......@@ -41,6 +41,16 @@ class Organization(models.Model):
on_delete=models.PROTECT,
default=1)
name = models.CharField(max_length=50, db_index=True)
internal_notes = models.TextField(
max_length=500,
help_text="These notes can contain information on WHY this organization was added. Can be handy if it's not "
"straightforward. This helps with answering questions why the organization was added lateron. "
"These notes will not be published, but are also not secret.",
blank=True,
null=True,
)
twitter_handle = models.CharField(
max_length=150,
help_text="Include the @ symbol. Used in the top lists to let visitors tweet to the"
......@@ -190,6 +200,16 @@ class Url(models.Model):
help_text="Lowercase url name. For example: mydomain.tld or subdomain.domain.tld"
)
internal_notes = models.TextField(
max_length=500,
help_text="These notes can contain information on WHY this URL was added. Can be handy if it's not "
"straightforward. This helps with answering questions why the URL was added lateron. For example: "
"some urls are owned via a 100% shareholder construction by a state company / municipality "
"while the company itself is private. These notes will not be published, but are also not secret.",
blank=True,
null=True,
)
created_on = models.DateTimeField(
auto_now_add=True,
blank=True,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment