Run black over entire codebase
This commit is contained in:
parent
fc7a9621a7
commit
e3e3f6d5db
@ -12,7 +12,7 @@ from apps.map.models import CaseStudy, PointOfInterest
|
||||
from . import views
|
||||
|
||||
apirouter = routers.DefaultRouter()
|
||||
apirouter.register(r'case-studies', views.CaseStudyViewSet)
|
||||
apirouter.register(r'points-of-interest', views.PointOfInterestViewSet)
|
||||
apirouter.register(r"case-studies", views.CaseStudyViewSet)
|
||||
apirouter.register(r"points-of-interest", views.PointOfInterestViewSet)
|
||||
|
||||
urlpatterns = apirouter.urls
|
||||
|
@ -13,7 +13,7 @@ from apps.map.models import CaseStudy, PointOfInterest
|
||||
class UserSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ('url', 'username', 'email', 'is_staff')
|
||||
fields = ("url", "username", "email", "is_staff")
|
||||
|
||||
|
||||
class UserViewSet(viewsets.ModelViewSet):
|
||||
@ -24,28 +24,30 @@ class UserViewSet(viewsets.ModelViewSet):
|
||||
class FileSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = File
|
||||
fields = ('file',)
|
||||
fields = ("file",)
|
||||
|
||||
|
||||
class CaseStudySerializer(gis_serializers.GeoFeatureModelSerializer):
|
||||
sector_of_economy = serializers.CharField(source='get_sector_of_economy_display')
|
||||
country_name = serializers.CharField(source='get_country_display')
|
||||
positive_or_negative_display = serializers.CharField(source='get_positive_or_negative_display')
|
||||
sector_of_economy = serializers.CharField(source="get_sector_of_economy_display")
|
||||
country_name = serializers.CharField(source="get_country_display")
|
||||
positive_or_negative_display = serializers.CharField(
|
||||
source="get_positive_or_negative_display"
|
||||
)
|
||||
images = FileSerializer(many=True)
|
||||
|
||||
class Meta:
|
||||
model = CaseStudy
|
||||
geo_field = "location"
|
||||
fields = (
|
||||
'country',
|
||||
'country_name',
|
||||
'entry_name',
|
||||
'images',
|
||||
'location',
|
||||
'positive_or_negative',
|
||||
'positive_or_negative_display',
|
||||
'sector_of_economy',
|
||||
'slug'
|
||||
"country",
|
||||
"country_name",
|
||||
"entry_name",
|
||||
"images",
|
||||
"location",
|
||||
"positive_or_negative",
|
||||
"positive_or_negative_display",
|
||||
"sector_of_economy",
|
||||
"slug",
|
||||
)
|
||||
|
||||
|
||||
@ -54,20 +56,13 @@ class CaseStudyViewSet(viewsets.ModelViewSet):
|
||||
serializer_class = CaseStudySerializer
|
||||
|
||||
|
||||
|
||||
class PointOfInterestSerializer(gis_serializers.GeoFeatureModelSerializer):
|
||||
class Meta:
|
||||
model = PointOfInterest
|
||||
geo_field = "location"
|
||||
fields = (
|
||||
'title',
|
||||
'synopsis',
|
||||
'link',
|
||||
'slug'
|
||||
)
|
||||
fields = ("title", "synopsis", "link", "slug")
|
||||
|
||||
|
||||
class PointOfInterestViewSet(viewsets.ModelViewSet):
|
||||
queryset = PointOfInterest.objects.approved()
|
||||
serializer_class = PointOfInterestSerializer
|
||||
|
||||
|
@ -7,5 +7,4 @@ class ContactForm(ContactForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ContactForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.add_input(Submit('submit', 'Submit',
|
||||
css_class='btn-lg pull-right'))
|
||||
self.helper.add_input(Submit("submit", "Submit", css_class="btn-lg pull-right"))
|
||||
|
@ -2,6 +2,4 @@ from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.ContactView.as_view(), name='contact'),
|
||||
]
|
||||
urlpatterns = [url(r"^$", views.ContactView.as_view(), name="contact")]
|
||||
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
||||
|
||||
|
||||
class FilesConfig(AppConfig):
|
||||
name = 'files'
|
||||
name = "files"
|
||||
|
@ -6,9 +6,10 @@ from .models import File, ImageFile
|
||||
class FileForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = File
|
||||
exclude = ['user',]
|
||||
exclude = ["user"]
|
||||
|
||||
|
||||
class ImageFileForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = ImageFile
|
||||
exclude = ['user',]
|
||||
exclude = ["user"]
|
||||
|
@ -9,18 +9,23 @@ class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='File',
|
||||
name="File",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('file', models.FileField(upload_to='.')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("file", models.FileField(upload_to=".")),
|
||||
],
|
||||
options={"abstract": False},
|
||||
)
|
||||
]
|
||||
|
@ -11,14 +11,19 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('files', '0001_initial'),
|
||||
("files", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='file',
|
||||
name='user',
|
||||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='files', to=settings.AUTH_USER_MODEL),
|
||||
preserve_default=False,
|
||||
model_name="file",
|
||||
name="user",
|
||||
field=models.ForeignKey(
|
||||
default=1,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="files",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
preserve_default=False,
|
||||
)
|
||||
]
|
||||
|
@ -11,26 +11,59 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('files', '0002_file_user'),
|
||||
("files", "0002_file_user"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ImageFile',
|
||||
name="ImageFile",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('file', models.FileField(upload_to='.')),
|
||||
('caption', models.CharField(default=None, max_length=240, null=True, verbose_name='Image caption')),
|
||||
('credit', models.CharField(default=None, max_length=240, null=True, verbose_name='Image credit')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='imagefile', to=settings.AUTH_USER_MODEL)),
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("file", models.FileField(upload_to=".")),
|
||||
(
|
||||
"caption",
|
||||
models.CharField(
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Image caption",
|
||||
),
|
||||
),
|
||||
(
|
||||
"credit",
|
||||
models.CharField(
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Image credit",
|
||||
),
|
||||
),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="imagefile",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
options={"abstract": False},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='file',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='file', to=settings.AUTH_USER_MODEL),
|
||||
model_name="file",
|
||||
name="user",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="file",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,29 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0003_auto_20180526_1547'),
|
||||
]
|
||||
dependencies = [("files", "0003_auto_20180526_1547")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='imagefile',
|
||||
name='caption',
|
||||
field=models.CharField(blank=True, default=None, max_length=240, null=True, verbose_name='Image caption'),
|
||||
model_name="imagefile",
|
||||
name="caption",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Image caption",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='imagefile',
|
||||
name='credit',
|
||||
field=models.CharField(blank=True, default=None, max_length=240, null=True, verbose_name='Image credit'),
|
||||
model_name="imagefile",
|
||||
name="credit",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Image credit",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,15 +7,15 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0004_auto_20180530_0308'),
|
||||
]
|
||||
dependencies = [("files", "0004_auto_20180530_0308")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='imagefile',
|
||||
name='caption',
|
||||
field=models.CharField(blank=True, default='', max_length=240, verbose_name='Image caption'),
|
||||
preserve_default=False,
|
||||
model_name="imagefile",
|
||||
name="caption",
|
||||
field=models.CharField(
|
||||
blank=True, default="", max_length=240, verbose_name="Image caption"
|
||||
),
|
||||
preserve_default=False,
|
||||
)
|
||||
]
|
||||
|
@ -5,15 +5,15 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0005_auto_20180922_1717'),
|
||||
]
|
||||
dependencies = [("files", "0005_auto_20180922_1717")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='imagefile',
|
||||
name='credit',
|
||||
field=models.CharField(blank=True, default='', max_length=240, verbose_name='Image credit'),
|
||||
preserve_default=False,
|
||||
model_name="imagefile",
|
||||
name="credit",
|
||||
field=models.CharField(
|
||||
blank=True, default="", max_length=240, verbose_name="Image credit"
|
||||
),
|
||||
preserve_default=False,
|
||||
)
|
||||
]
|
||||
|
@ -7,19 +7,25 @@ import django.db.models.deletion
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0006_auto_20180928_1323'),
|
||||
]
|
||||
dependencies = [("files", "0006_auto_20180928_1323")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='file',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='file', to=settings.AUTH_USER_MODEL),
|
||||
model_name="file",
|
||||
name="user",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name="file",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='imagefile',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='imagefile', to=settings.AUTH_USER_MODEL),
|
||||
model_name="imagefile",
|
||||
name="user",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name="imagefile",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -6,12 +6,8 @@ from apps.map.models import CaseStudy, CaseStudyDraft
|
||||
|
||||
|
||||
class BaseFile(models.Model):
|
||||
file = models.FileField(
|
||||
upload_to='.',
|
||||
)
|
||||
user = models.ForeignKey(
|
||||
User, related_name='%(class)s', on_delete=models.PROTECT,
|
||||
)
|
||||
file = models.FileField(upload_to=".")
|
||||
user = models.ForeignKey(User, related_name="%(class)s", on_delete=models.PROTECT)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
@ -29,13 +25,9 @@ class File(BaseFile):
|
||||
|
||||
class ImageFile(BaseFile):
|
||||
caption = models.CharField(
|
||||
verbose_name=_("Image caption"),
|
||||
max_length=240,
|
||||
blank=True,
|
||||
verbose_name=_("Image caption"), max_length=240, blank=True
|
||||
)
|
||||
|
||||
credit = models.CharField(
|
||||
verbose_name=_("Image credit"),
|
||||
max_length=240,
|
||||
blank=True,
|
||||
verbose_name=_("Image credit"), max_length=240, blank=True
|
||||
)
|
||||
|
@ -12,14 +12,16 @@ from .models import File
|
||||
@override_storage()
|
||||
class FileTests(TestCase):
|
||||
|
||||
test_user = 'testuser1'
|
||||
test_pass = '12345'
|
||||
test_user = "testuser1"
|
||||
test_pass = "12345"
|
||||
|
||||
def setUp(self):
|
||||
test_user1 = User.objects.create_user(username=self.test_user, password=self.test_pass)
|
||||
test_user1 = User.objects.create_user(
|
||||
username=self.test_user, password=self.test_pass
|
||||
)
|
||||
test_user1.save()
|
||||
|
||||
activate('en-gb')
|
||||
activate("en-gb")
|
||||
|
||||
self.file = File.objects.create(user=test_user1)
|
||||
|
||||
@ -27,19 +29,19 @@ class FileTests(TestCase):
|
||||
return self.client.login(username=self.test_user, password=self.test_pass)
|
||||
|
||||
def test_post_not_logged_in(self):
|
||||
url = reverse('files:upload')
|
||||
url = reverse("files:upload")
|
||||
|
||||
next_url = QueryDict.fromkeys(['next',], url)
|
||||
login_url = reverse('auth_login') + '?' + next_url.urlencode()
|
||||
next_url = QueryDict.fromkeys(["next"], url)
|
||||
login_url = reverse("auth_login") + "?" + next_url.urlencode()
|
||||
|
||||
response = self.client.post(url, follow=True)
|
||||
self.assertRedirects(response, login_url)
|
||||
|
||||
def test_delete_not_logged_in(self):
|
||||
url = reverse('files:delete', kwargs={'pk': self.file.pk})
|
||||
url = reverse("files:delete", kwargs={"pk": self.file.pk})
|
||||
|
||||
next_url = QueryDict.fromkeys(['next',], url)
|
||||
login_url = reverse('auth_login') + '?' + next_url.urlencode()
|
||||
next_url = QueryDict.fromkeys(["next"], url)
|
||||
login_url = reverse("auth_login") + "?" + next_url.urlencode()
|
||||
|
||||
response = self.client.post(url, follow=True)
|
||||
self.assertRedirects(response, login_url)
|
||||
@ -47,21 +49,19 @@ class FileTests(TestCase):
|
||||
def test_post_and_delete(self):
|
||||
login = self.login()
|
||||
|
||||
with open('apps/map/static/map/ojuso-logo-white.png', 'rb') as fp:
|
||||
response = self.client.post(reverse('files:upload_image'), {
|
||||
'file': fp
|
||||
})
|
||||
with open("apps/map/static/map/ojuso-logo-white.png", "rb") as fp:
|
||||
response = self.client.post(reverse("files:upload_image"), {"file": fp})
|
||||
|
||||
data = response.json()
|
||||
self.assertIsInstance(data['id'], int)
|
||||
self.assertEqual(data['is_valid'], True)
|
||||
self.assertIsInstance(data["id"], int)
|
||||
self.assertEqual(data["is_valid"], True)
|
||||
|
||||
response = self.client.post(reverse('files:delete_image', kwargs={
|
||||
'pk': data['id']
|
||||
}))
|
||||
response = self.client.post(
|
||||
reverse("files:delete_image", kwargs={"pk": data["id"]})
|
||||
)
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
data = response.json()
|
||||
|
||||
self.assertEqual(data['success'], True)
|
||||
self.assertEqual(data["success"], True)
|
||||
|
@ -1,13 +1,21 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import (FileUploadView, FileDeleteView, ImageFileUploadView,
|
||||
ImageFileDeleteView)
|
||||
from .views import (
|
||||
FileUploadView,
|
||||
FileDeleteView,
|
||||
ImageFileUploadView,
|
||||
ImageFileDeleteView,
|
||||
)
|
||||
|
||||
app_name = 'files'
|
||||
app_name = "files"
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^upload/$', FileUploadView.as_view(), name='upload'),
|
||||
url(r'^upload/image/$', ImageFileUploadView.as_view(), name='upload_image'),
|
||||
url(r'^delete/(?P<pk>\d+)/$', FileDeleteView.as_view(), name='delete'),
|
||||
url(r'^delete/image/(?P<pk>\d+)/$', ImageFileDeleteView.as_view(), name='delete_image'),
|
||||
url(r"^upload/$", FileUploadView.as_view(), name="upload"),
|
||||
url(r"^upload/image/$", ImageFileUploadView.as_view(), name="upload_image"),
|
||||
url(r"^delete/(?P<pk>\d+)/$", FileDeleteView.as_view(), name="delete"),
|
||||
url(
|
||||
r"^delete/image/(?P<pk>\d+)/$",
|
||||
ImageFileDeleteView.as_view(),
|
||||
name="delete_image",
|
||||
),
|
||||
]
|
||||
|
@ -17,15 +17,17 @@ class FileUploadView(LoginRequiredMixin, FormView):
|
||||
self.object.user = self.request.user
|
||||
self.object.save()
|
||||
|
||||
return JsonResponse({
|
||||
'is_valid': True,
|
||||
'url': self.object.file.url,
|
||||
'name': self.object.file.name,
|
||||
'id': self.object.pk
|
||||
})
|
||||
return JsonResponse(
|
||||
{
|
||||
"is_valid": True,
|
||||
"url": self.object.file.url,
|
||||
"name": self.object.file.name,
|
||||
"id": self.object.pk,
|
||||
}
|
||||
)
|
||||
|
||||
def form_invalid(self, form):
|
||||
return JsonResponse({'is_valid': False, 'errors': form.errors})
|
||||
return JsonResponse({"is_valid": False, "errors": form.errors})
|
||||
|
||||
|
||||
class ImageFileUploadView(FileUploadView):
|
||||
@ -47,9 +49,7 @@ class FileDeleteView(LoginRequiredMixin, DetailView):
|
||||
|
||||
self.object.delete()
|
||||
|
||||
return JsonResponse({
|
||||
'success': True
|
||||
})
|
||||
return JsonResponse({"success": True})
|
||||
|
||||
|
||||
class ImageFileDeleteView(FileDeleteView):
|
||||
|
@ -14,16 +14,16 @@ class CaseStudyAdminForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = CaseStudy
|
||||
widgets = {
|
||||
'coordinate_reference_system': autocomplete.ModelSelect2(
|
||||
url='srs-autocomplete'
|
||||
"coordinate_reference_system": autocomplete.ModelSelect2(
|
||||
url="srs-autocomplete"
|
||||
)
|
||||
}
|
||||
fields = '__all__'
|
||||
fields = "__all__"
|
||||
|
||||
|
||||
class CaseStudyAdmin(LeafletGeoAdmin):
|
||||
list_display = ('id', 'date_created', 'entry_name', 'approved', 'author')
|
||||
actions = ['approve', 'unapprove']
|
||||
list_display = ("id", "date_created", "entry_name", "approved", "author")
|
||||
actions = ["approve", "unapprove"]
|
||||
form = CaseStudyAdminForm
|
||||
|
||||
def approve(self, request, queryset):
|
||||
@ -32,9 +32,8 @@ class CaseStudyAdmin(LeafletGeoAdmin):
|
||||
message_bit = "1 case study was"
|
||||
else:
|
||||
message_bit = "{0} case studies were".format(updated)
|
||||
self.message_user(request, "{0} successfully approved".format(
|
||||
message_bit
|
||||
))
|
||||
self.message_user(request, "{0} successfully approved".format(message_bit))
|
||||
|
||||
approve.short_description = "Approve selected case studies"
|
||||
|
||||
def unapprove(self, request, queryset):
|
||||
@ -43,11 +42,11 @@ class CaseStudyAdmin(LeafletGeoAdmin):
|
||||
message_bit = "1 case study was"
|
||||
else:
|
||||
message_bit = "{0} case studies were".format(updated)
|
||||
self.message_user(request, "{0} successfully un-approved".format(
|
||||
message_bit
|
||||
))
|
||||
self.message_user(request, "{0} successfully un-approved".format(message_bit))
|
||||
|
||||
unapprove.short_description = "Un-approve selected case studies"
|
||||
|
||||
|
||||
admin.site.register(CaseStudy, CaseStudyAdmin)
|
||||
admin.site.register(SpatialRefSys)
|
||||
admin.site.register(CaseStudyDraft, CaseStudyDraftAdmin)
|
||||
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
||||
|
||||
|
||||
class MapConfig(AppConfig):
|
||||
name = 'map'
|
||||
name = "map"
|
||||
|
@ -17,70 +17,67 @@ from .widgets import JSONFileListWidget
|
||||
|
||||
|
||||
SECTOR_HELP = {
|
||||
'RN': _("Including electricity, heat or combined heat and power generation"),
|
||||
'PG': '',
|
||||
'ST': _('Biological, chemical, electrical, electromagnetic, electrochemical,'
|
||||
' mechanical including gravitational potential, thermal, etc.'),
|
||||
'SM': _("Including supply of minerals"),
|
||||
'MA': '',
|
||||
"RN": _("Including electricity, heat or combined heat and power generation"),
|
||||
"PG": "",
|
||||
"ST": _(
|
||||
"Biological, chemical, electrical, electromagnetic, electrochemical,"
|
||||
" mechanical including gravitational potential, thermal, etc."
|
||||
),
|
||||
"SM": _("Including supply of minerals"),
|
||||
"MA": "",
|
||||
}
|
||||
|
||||
POWER_TECHNOLOGY_HELP = {
|
||||
'PT': _('Lines, transformers, machinery, etc.'),
|
||||
'HN': _('District heating/cooling, etc.'),
|
||||
'OT': '',
|
||||
"PT": _("Lines, transformers, machinery, etc."),
|
||||
"HN": _("District heating/cooling, etc."),
|
||||
"OT": "",
|
||||
}
|
||||
|
||||
|
||||
def add_explanatory_text(model_choices, explanatory_text):
|
||||
return [
|
||||
(
|
||||
choice[0],
|
||||
mark_safe('<b>%s</b><br><span class="text-muted">%s</span>' %
|
||||
(choice[1], explanatory_text[choice[0]])
|
||||
mark_safe(
|
||||
'<b>%s</b><br><span class="text-muted">%s</span>'
|
||||
% (choice[1], explanatory_text[choice[0]])
|
||||
),
|
||||
)
|
||||
) for choice in model_choices
|
||||
for choice in model_choices
|
||||
]
|
||||
|
||||
|
||||
|
||||
class MinimumZoomWidget(LeafletWidget):
|
||||
geometry_field_class = 'MinimumZoomField'
|
||||
geometry_field_class = "MinimumZoomField"
|
||||
|
||||
|
||||
class PointOfInterest(forms.models.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(PointOfInterest, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper(self)
|
||||
self.helper.form_id = 'case-study-form'
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.form_method = 'post'
|
||||
self.helper.form_action = 'add'
|
||||
self.helper.label_class = 'col-lg-2'
|
||||
self.helper.field_class = 'col-lg-10'
|
||||
self.helper.form_id = "case-study-form"
|
||||
self.helper.form_class = "form-horizontal"
|
||||
self.helper.form_method = "post"
|
||||
self.helper.form_action = "add"
|
||||
self.helper.label_class = "col-lg-2"
|
||||
self.helper.field_class = "col-lg-10"
|
||||
self.helper.include_media = False
|
||||
|
||||
self.helper.form_action = reverse('point-of-interest-form')
|
||||
self.helper.form_action = reverse("point-of-interest-form")
|
||||
self.helper.add_input(
|
||||
Submit('submit', _('Submit'), css_class='btn-success center-block')
|
||||
Submit("submit", _("Submit"), css_class="btn-success center-block")
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = PointOfInterest
|
||||
|
||||
widgets = {
|
||||
'location': MinimumZoomWidget(attrs={
|
||||
'settings_overrides': {
|
||||
'SCALE': False
|
||||
}
|
||||
}),
|
||||
"location": MinimumZoomWidget(
|
||||
attrs={"settings_overrides": {"SCALE": False}}
|
||||
)
|
||||
}
|
||||
|
||||
fields = [
|
||||
'title',
|
||||
'location',
|
||||
'synopsis',
|
||||
'link',
|
||||
]
|
||||
fields = ["title", "location", "synopsis", "link"]
|
||||
|
||||
|
||||
class BaseCaseStudyForm(forms.models.ModelForm):
|
||||
@ -89,11 +86,11 @@ class BaseCaseStudyForm(forms.models.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BaseCaseStudyForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper(self)
|
||||
self.helper.form_id = 'case-study-form'
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.form_method = 'post'
|
||||
self.helper.label_class = 'col-md-3'
|
||||
self.helper.field_class = 'col-md-9'
|
||||
self.helper.form_id = "case-study-form"
|
||||
self.helper.form_class = "form-horizontal"
|
||||
self.helper.form_method = "post"
|
||||
self.helper.label_class = "col-md-3"
|
||||
self.helper.field_class = "col-md-9"
|
||||
self.helper.include_media = False
|
||||
|
||||
# Parse number fields correctly for the locale
|
||||
@ -114,13 +111,11 @@ class BaseCaseStudyForm(forms.models.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = CaseStudy
|
||||
fields = '__all__'
|
||||
fields = "__all__"
|
||||
widgets = {
|
||||
'location': MinimumZoomWidget(attrs={
|
||||
'settings_overrides': {
|
||||
'SCALE': False
|
||||
}
|
||||
}),
|
||||
"location": MinimumZoomWidget(
|
||||
attrs={"settings_overrides": {"SCALE": False}}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -129,48 +124,48 @@ class ShortCaseStudyForm(BaseCaseStudyForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ShortCaseStudyForm, self).__init__(*args, **kwargs)
|
||||
self.helper.add_input(Submit('submit', _('Submit'), css_class='btn-success center-block'))
|
||||
self.helper.add_input(
|
||||
Submit("submit", _("Submit"), css_class="btn-success center-block")
|
||||
)
|
||||
|
||||
self.fields['sector_of_economy'].widget = forms.RadioSelect()
|
||||
self.fields['sector_of_economy'].required = False
|
||||
self.fields['sector_of_economy'].choices = add_explanatory_text(
|
||||
CaseStudy.SECTOR_CHOICES,
|
||||
SECTOR_HELP
|
||||
self.fields["sector_of_economy"].widget = forms.RadioSelect()
|
||||
self.fields["sector_of_economy"].required = False
|
||||
self.fields["sector_of_economy"].choices = add_explanatory_text(
|
||||
CaseStudy.SECTOR_CHOICES, SECTOR_HELP
|
||||
)
|
||||
|
||||
class Meta(BaseCaseStudyForm.Meta):
|
||||
fields = [
|
||||
'entry_name',
|
||||
'location',
|
||||
'sector_of_economy',
|
||||
'positive_or_negative',
|
||||
'country',
|
||||
'area_of_land',
|
||||
'land_ownership',
|
||||
'land_ownership_details',
|
||||
'location_context',
|
||||
'type_of_ecosystem',
|
||||
'describe_ecosystem',
|
||||
'affected_communities',
|
||||
'project_status',
|
||||
'synopsis',
|
||||
'full_description',
|
||||
'video',
|
||||
'media_coverage_mainstream',
|
||||
'media_coverage_independent',
|
||||
'community_voices'
|
||||
"entry_name",
|
||||
"location",
|
||||
"sector_of_economy",
|
||||
"positive_or_negative",
|
||||
"country",
|
||||
"area_of_land",
|
||||
"land_ownership",
|
||||
"land_ownership_details",
|
||||
"location_context",
|
||||
"type_of_ecosystem",
|
||||
"describe_ecosystem",
|
||||
"affected_communities",
|
||||
"project_status",
|
||||
"synopsis",
|
||||
"full_description",
|
||||
"video",
|
||||
"media_coverage_mainstream",
|
||||
"media_coverage_independent",
|
||||
"community_voices",
|
||||
]
|
||||
|
||||
|
||||
class BootstrapClearableFileInput(forms.ClearableFileInput):
|
||||
template_name = 'map/forms/widgets/file.html'
|
||||
template_name = "map/forms/widgets/file.html"
|
||||
|
||||
|
||||
def PreviousButton():
|
||||
return HTML(
|
||||
format_lazy(
|
||||
"<a class='btn btn-primary btnPrevious'>{prev}</a>",
|
||||
prev=_("Previous")
|
||||
"<a class='btn btn-primary btnPrevious'>{prev}</a>", prev=_("Previous")
|
||||
)
|
||||
)
|
||||
|
||||
@ -178,8 +173,7 @@ def PreviousButton():
|
||||
def NextButton():
|
||||
return HTML(
|
||||
format_lazy(
|
||||
"<a class='btn btn-primary btnNext pull-right'>{next}</a>",
|
||||
next=_("Next")
|
||||
"<a class='btn btn-primary btnNext pull-right'>{next}</a>", next=_("Next")
|
||||
)
|
||||
)
|
||||
|
||||
@ -189,100 +183,98 @@ class LongCaseStudyForm(BaseCaseStudyForm):
|
||||
|
||||
images = forms.FileField(
|
||||
label=_("Images"),
|
||||
widget=BootstrapClearableFileInput(attrs={
|
||||
'url': reverse_lazy('files:upload'),
|
||||
'field': 'images_files',
|
||||
}),
|
||||
required=False
|
||||
widget=BootstrapClearableFileInput(
|
||||
attrs={"url": reverse_lazy("files:upload"), "field": "images_files"}
|
||||
),
|
||||
required=False,
|
||||
)
|
||||
|
||||
images_files = forms.ModelMultipleChoiceField(
|
||||
queryset=ImageFile.objects.all(),
|
||||
widget=JSONFileListWidget(),
|
||||
required=False
|
||||
queryset=ImageFile.objects.all(), widget=JSONFileListWidget(), required=False
|
||||
)
|
||||
|
||||
official_project_documents = forms.FileField(
|
||||
label=_("Official project documents"),
|
||||
widget=BootstrapClearableFileInput(attrs={
|
||||
'url': reverse_lazy('files:upload'),
|
||||
'field': 'official_project_documents_files',
|
||||
}), required=False
|
||||
widget=BootstrapClearableFileInput(
|
||||
attrs={
|
||||
"url": reverse_lazy("files:upload"),
|
||||
"field": "official_project_documents_files",
|
||||
}
|
||||
),
|
||||
required=False,
|
||||
)
|
||||
|
||||
official_project_documents_files = forms.ModelMultipleChoiceField(
|
||||
queryset=File.objects.all(),
|
||||
widget=JSONFileListWidget(),
|
||||
required=False
|
||||
queryset=File.objects.all(), widget=JSONFileListWidget(), required=False
|
||||
)
|
||||
|
||||
other_documents = forms.FileField(
|
||||
label=_("Other documents"),
|
||||
widget=BootstrapClearableFileInput(attrs={
|
||||
'url': reverse_lazy('files:upload'),
|
||||
'field': 'other_documents_files',
|
||||
}), required=False
|
||||
widget=BootstrapClearableFileInput(
|
||||
attrs={
|
||||
"url": reverse_lazy("files:upload"),
|
||||
"field": "other_documents_files",
|
||||
}
|
||||
),
|
||||
required=False,
|
||||
)
|
||||
|
||||
other_documents_files = forms.ModelMultipleChoiceField(
|
||||
queryset=File.objects.all(),
|
||||
widget=JSONFileListWidget(),
|
||||
required=False
|
||||
queryset=File.objects.all(), widget=JSONFileListWidget(), required=False
|
||||
)
|
||||
|
||||
shapefiles = forms.FileField(
|
||||
label=CaseStudy.shapefiles_label,
|
||||
help_text=CaseStudy.shapefiles_help_text,
|
||||
widget=BootstrapClearableFileInput(attrs={
|
||||
'url': reverse_lazy('files:upload'),
|
||||
'field': 'shapefiles_files',
|
||||
}), required=False
|
||||
widget=BootstrapClearableFileInput(
|
||||
attrs={"url": reverse_lazy("files:upload"), "field": "shapefiles_files"}
|
||||
),
|
||||
required=False,
|
||||
)
|
||||
|
||||
shapefiles_files = forms.ModelMultipleChoiceField(
|
||||
queryset=File.objects.all(),
|
||||
widget=JSONFileListWidget(),
|
||||
required=False
|
||||
queryset=File.objects.all(), widget=JSONFileListWidget(), required=False
|
||||
)
|
||||
|
||||
coordinate_reference_system = forms.ModelChoiceField(
|
||||
label=_("Coordinate reference system"),
|
||||
queryset=SpatialRefSys.objects.all(),
|
||||
widget=autocomplete.ModelSelect2(url='srs-autocomplete'),
|
||||
widget=autocomplete.ModelSelect2(url="srs-autocomplete"),
|
||||
initial=4326,
|
||||
)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(LongCaseStudyForm, self).__init__(*args, **kwargs)
|
||||
|
||||
self.fields['positive_case_type'].label = ""
|
||||
self.fields['negative_case_reasons'].label = ""
|
||||
self.fields["positive_case_type"].label = ""
|
||||
self.fields["negative_case_reasons"].label = ""
|
||||
|
||||
self.fields['sector_of_economy'].widget = forms.RadioSelect()
|
||||
self.fields['sector_of_economy'].required = False
|
||||
self.fields['sector_of_economy'].choices = add_explanatory_text(
|
||||
CaseStudy.SECTOR_CHOICES,
|
||||
SECTOR_HELP
|
||||
self.fields["sector_of_economy"].widget = forms.RadioSelect()
|
||||
self.fields["sector_of_economy"].required = False
|
||||
self.fields["sector_of_economy"].choices = add_explanatory_text(
|
||||
CaseStudy.SECTOR_CHOICES, SECTOR_HELP
|
||||
)
|
||||
|
||||
self.fields['power_technology'].widget = forms.RadioSelect()
|
||||
self.fields['power_technology'].required = False
|
||||
self.fields['power_technology'].choices = add_explanatory_text(
|
||||
CaseStudy.POWER_TECHNOLOGY_CHOICES,
|
||||
POWER_TECHNOLOGY_HELP
|
||||
self.fields["power_technology"].widget = forms.RadioSelect()
|
||||
self.fields["power_technology"].required = False
|
||||
self.fields["power_technology"].choices = add_explanatory_text(
|
||||
CaseStudy.POWER_TECHNOLOGY_CHOICES, POWER_TECHNOLOGY_HELP
|
||||
)
|
||||
|
||||
self.fields['project_owners'].required = True
|
||||
self.fields['shareholders'].required = True
|
||||
self.fields["project_owners"].required = True
|
||||
self.fields["shareholders"].required = True
|
||||
|
||||
organising_vs_label = _(
|
||||
'Socio-environmental impacts (negative and potentially positive)')
|
||||
"Socio-environmental impacts (negative and potentially positive)"
|
||||
)
|
||||
organising_pro_label = _(
|
||||
'Socio-environmental impacts (positive and potentially negative)')
|
||||
"Socio-environmental impacts (positive and potentially negative)"
|
||||
)
|
||||
organising_other_label = _(
|
||||
'Socio-environmental impacts (positive and negative)')
|
||||
"Socio-environmental impacts (positive and negative)"
|
||||
)
|
||||
|
||||
self.fields['socioeconomic_benefits'].label = format_lazy(
|
||||
self.fields["socioeconomic_benefits"].label = format_lazy(
|
||||
(
|
||||
'<span class="organising organising-vs">{vs}</span>'
|
||||
'<span class="organising organising-pro">{pro}</span>'
|
||||
@ -290,33 +282,36 @@ class LongCaseStudyForm(BaseCaseStudyForm):
|
||||
),
|
||||
vs=organising_vs_label,
|
||||
pro=organising_pro_label,
|
||||
other=organising_other_label
|
||||
other=organising_other_label,
|
||||
)
|
||||
|
||||
organising_other_text = _(
|
||||
'Please expand on your response given in the full description on page one.'
|
||||
' For example, for positive impacts you need to go beyond emissions'
|
||||
' savings, paying rent for land, or complying with environmental or social'
|
||||
' legislation. For negative impacts you need to focus on substantive'
|
||||
' impacts on vulnerable groups, violations of land rights or abusive labour'
|
||||
' practices.')
|
||||
"Please expand on your response given in the full description on page one."
|
||||
" For example, for positive impacts you need to go beyond emissions"
|
||||
" savings, paying rent for land, or complying with environmental or social"
|
||||
" legislation. For negative impacts you need to focus on substantive"
|
||||
" impacts on vulnerable groups, violations of land rights or abusive labour"
|
||||
" practices."
|
||||
)
|
||||
|
||||
organising_vs_text = _(
|
||||
'Please expand on your response given in the description. Note that we aim'
|
||||
' to focus on violation of land rights / human rights / collective rights,'
|
||||
' substantive negative impacts on vulnerable groups, aggression / threats /'
|
||||
' violence, severe environmental and/or cultural impacts, abusive labor'
|
||||
' practices, and corruption / governance issues, but feel free to cover any'
|
||||
' additional aspect that you consider relevant. Please also describe and'
|
||||
' analyze socio-environmental impacts that could be presented or considered'
|
||||
' as positive.')
|
||||
"Please expand on your response given in the description. Note that we aim"
|
||||
" to focus on violation of land rights / human rights / collective rights,"
|
||||
" substantive negative impacts on vulnerable groups, aggression / threats /"
|
||||
" violence, severe environmental and/or cultural impacts, abusive labor"
|
||||
" practices, and corruption / governance issues, but feel free to cover any"
|
||||
" additional aspect that you consider relevant. Please also describe and"
|
||||
" analyze socio-environmental impacts that could be presented or considered"
|
||||
" as positive."
|
||||
)
|
||||
|
||||
organising_pro_text = _(
|
||||
'Please expand on your response given in the description. Please also'
|
||||
' describe and analyze socio-environmental impacts that could be considered'
|
||||
' as negative.')
|
||||
"Please expand on your response given in the description. Please also"
|
||||
" describe and analyze socio-environmental impacts that could be considered"
|
||||
" as negative."
|
||||
)
|
||||
|
||||
self.fields['socioeconomic_benefits'].help_text = format_lazy(
|
||||
self.fields["socioeconomic_benefits"].help_text = format_lazy(
|
||||
(
|
||||
'<span class="organising organising-none organising-idk">{other}</span>'
|
||||
'<span class="organising organising-vs">{vs}</span>'
|
||||
@ -324,121 +319,111 @@ class LongCaseStudyForm(BaseCaseStudyForm):
|
||||
),
|
||||
vs=organising_vs_text,
|
||||
pro=organising_pro_text,
|
||||
other=organising_other_text
|
||||
other=organising_other_text,
|
||||
)
|
||||
|
||||
|
||||
self.helper.form_action = reverse('long-form')
|
||||
self.helper.form_action = reverse("long-form")
|
||||
self.helper.layout = Layout(
|
||||
TabHolder(
|
||||
Tab(_("Basic information"),
|
||||
'entry_name',
|
||||
'location',
|
||||
'country',
|
||||
'shapefiles',
|
||||
'shapefiles_files',
|
||||
'coordinate_reference_system',
|
||||
'name_of_territory_or_area',
|
||||
'area_of_land',
|
||||
'land_ownership',
|
||||
'land_ownership_details',
|
||||
'location_context',
|
||||
'type_of_ecosystem',
|
||||
'describe_ecosystem',
|
||||
'affected_communities',
|
||||
'people_affected_other',
|
||||
'project_status',
|
||||
'start_year',
|
||||
'completion_year',
|
||||
'synopsis',
|
||||
'full_description',
|
||||
'images',
|
||||
'images_files',
|
||||
'video',
|
||||
'video_caption',
|
||||
'video_credit',
|
||||
Tab(
|
||||
_("Basic information"),
|
||||
"entry_name",
|
||||
"location",
|
||||
"country",
|
||||
"shapefiles",
|
||||
"shapefiles_files",
|
||||
"coordinate_reference_system",
|
||||
"name_of_territory_or_area",
|
||||
"area_of_land",
|
||||
"land_ownership",
|
||||
"land_ownership_details",
|
||||
"location_context",
|
||||
"type_of_ecosystem",
|
||||
"describe_ecosystem",
|
||||
"affected_communities",
|
||||
"people_affected_other",
|
||||
"project_status",
|
||||
"start_year",
|
||||
"completion_year",
|
||||
"synopsis",
|
||||
"full_description",
|
||||
"images",
|
||||
"images_files",
|
||||
"video",
|
||||
"video_caption",
|
||||
"video_credit",
|
||||
Fieldset(
|
||||
_("Owners and financiers"),
|
||||
'project_owners',
|
||||
'consultants_contractors',
|
||||
'shareholders',
|
||||
'financial_institutions',
|
||||
'financial_institutions_other',
|
||||
"project_owners",
|
||||
"consultants_contractors",
|
||||
"shareholders",
|
||||
"financial_institutions",
|
||||
"financial_institutions_other",
|
||||
),
|
||||
Fieldset(
|
||||
_("Media reports and other communications"),
|
||||
'media_coverage_mainstream',
|
||||
'media_coverage_independent',
|
||||
'community_voices',
|
||||
'direct_comms',
|
||||
'social_media_links'
|
||||
"media_coverage_mainstream",
|
||||
"media_coverage_independent",
|
||||
"community_voices",
|
||||
"direct_comms",
|
||||
"social_media_links",
|
||||
),
|
||||
FormActions(
|
||||
NextButton()
|
||||
)
|
||||
FormActions(NextButton()),
|
||||
),
|
||||
Tab(
|
||||
_("Technical and economic analysis"),
|
||||
'sector_of_economy',
|
||||
"sector_of_economy",
|
||||
Div(
|
||||
'generation_type',
|
||||
'generation_technology',
|
||||
css_class='power_generation_questions'
|
||||
"generation_type",
|
||||
"generation_technology",
|
||||
css_class="power_generation_questions",
|
||||
),
|
||||
Div("power_technology", css_class="energy_network_questions"),
|
||||
Div(
|
||||
"energy_details",
|
||||
css_class="energy_generation_network_and_storage_questions",
|
||||
),
|
||||
Div(
|
||||
'power_technology',
|
||||
css_class='energy_network_questions'
|
||||
"biomass_detail",
|
||||
"total_generation_capacity",
|
||||
css_class="power_generation_questions",
|
||||
),
|
||||
Div(
|
||||
'energy_details',
|
||||
css_class='energy_generation_network_and_storage_questions'
|
||||
"energy_transmission_capacity",
|
||||
css_class="energy_network_questions",
|
||||
),
|
||||
Div(
|
||||
'biomass_detail',
|
||||
'total_generation_capacity',
|
||||
css_class='power_generation_questions'
|
||||
"energy_storage_capacity", css_class="energy_storage_questions"
|
||||
),
|
||||
Div(
|
||||
'energy_transmission_capacity',
|
||||
css_class='energy_network_questions'
|
||||
PrependedText("total_investment", "USD $"),
|
||||
"contractor_or_supplier_of_technology",
|
||||
"energy_customers",
|
||||
"additional_technical_details",
|
||||
css_class="energy_generation_network_and_storage_questions",
|
||||
),
|
||||
Div(
|
||||
'energy_storage_capacity',
|
||||
css_class='energy_storage_questions'
|
||||
"minerals_or_commodities",
|
||||
"minerals_or_commodities_other",
|
||||
"use_in_energy_economy",
|
||||
"use_in_energy_economy_other",
|
||||
"project_life_span",
|
||||
"size_of_concessions",
|
||||
"projected_production_of_commodities",
|
||||
"type_of_extraction",
|
||||
"associated_infrastructure",
|
||||
css_class="mineral_commodity_questions",
|
||||
),
|
||||
Div(
|
||||
PrependedText('total_investment', 'USD $'),
|
||||
'contractor_or_supplier_of_technology',
|
||||
'energy_customers',
|
||||
'additional_technical_details',
|
||||
css_class='energy_generation_network_and_storage_questions'
|
||||
"manufacturing_type",
|
||||
"manufacturing_description",
|
||||
"manufacturing_related_tech",
|
||||
"manufacturing_factors",
|
||||
"manufacturing_factors_description",
|
||||
"manufacturing_ownership",
|
||||
css_class="manufacturing_questions",
|
||||
),
|
||||
|
||||
Div(
|
||||
'minerals_or_commodities',
|
||||
'minerals_or_commodities_other',
|
||||
'use_in_energy_economy',
|
||||
'use_in_energy_economy_other',
|
||||
'project_life_span',
|
||||
'size_of_concessions',
|
||||
'projected_production_of_commodities',
|
||||
'type_of_extraction',
|
||||
'associated_infrastructure',
|
||||
css_class="mineral_commodity_questions"
|
||||
),
|
||||
Div(
|
||||
'manufacturing_type',
|
||||
'manufacturing_description',
|
||||
'manufacturing_related_tech',
|
||||
'manufacturing_factors',
|
||||
'manufacturing_factors_description',
|
||||
'manufacturing_ownership',
|
||||
css_class="manufacturing_questions"
|
||||
),
|
||||
FormActions(
|
||||
PreviousButton(),
|
||||
NextButton()
|
||||
)
|
||||
FormActions(PreviousButton(), NextButton()),
|
||||
),
|
||||
Tab(
|
||||
_("Socio-environmental analysis"),
|
||||
@ -448,74 +433,69 @@ class LongCaseStudyForm(BaseCaseStudyForm):
|
||||
text=_(
|
||||
"In the following, we expect the analysis to reflect"
|
||||
" the perspective of the organization(s) or person(s)"
|
||||
" describing the case.")
|
||||
" describing the case."
|
||||
),
|
||||
)
|
||||
),
|
||||
'positive_or_negative',
|
||||
"positive_or_negative",
|
||||
Div(
|
||||
HTML(
|
||||
format_lazy(
|
||||
"<label class='col-md-3 control-label'>{text}</label>",
|
||||
text=_("What kind of case is this entry about?")
|
||||
text=_("What kind of case is this entry about?"),
|
||||
)
|
||||
),
|
||||
Div(
|
||||
'positive_case_type',
|
||||
'negative_case_reasons',
|
||||
css_class='col-md-9',
|
||||
"positive_case_type",
|
||||
"negative_case_reasons",
|
||||
css_class="col-md-9",
|
||||
),
|
||||
css_class='form-group',
|
||||
css_class="form-group",
|
||||
),
|
||||
'negative_case_reasons_other',
|
||||
'socioeconomic_benefits',
|
||||
'isolated_or_widespread',
|
||||
'key_actors_involved',
|
||||
'project_status_detail',
|
||||
'obstacles_and_hindrances',
|
||||
'negative_socioenvironmental_impacts',
|
||||
'when_did_organising_start',
|
||||
'who_has_been_involved',
|
||||
'participation_mechanisms',
|
||||
'identified_partnerships',
|
||||
Div(
|
||||
css_class="common_questions"
|
||||
),
|
||||
FormActions(
|
||||
PreviousButton(),
|
||||
NextButton()
|
||||
)
|
||||
"negative_case_reasons_other",
|
||||
"socioeconomic_benefits",
|
||||
"isolated_or_widespread",
|
||||
"key_actors_involved",
|
||||
"project_status_detail",
|
||||
"obstacles_and_hindrances",
|
||||
"negative_socioenvironmental_impacts",
|
||||
"when_did_organising_start",
|
||||
"who_has_been_involved",
|
||||
"participation_mechanisms",
|
||||
"identified_partnerships",
|
||||
Div(css_class="common_questions"),
|
||||
FormActions(PreviousButton(), NextButton()),
|
||||
),
|
||||
Tab(
|
||||
_("Contact details"),
|
||||
'contact_email',
|
||||
'contact_phone',
|
||||
'contact_website',
|
||||
PrependedText('contact_twitter', '@', placeholder='username'),
|
||||
'contact_facebook',
|
||||
'contact_other',
|
||||
'shown_on_other_platforms',
|
||||
'shown_on_other_platforms_detail',
|
||||
FormActions(
|
||||
PreviousButton(),
|
||||
NextButton()
|
||||
)
|
||||
"contact_email",
|
||||
"contact_phone",
|
||||
"contact_website",
|
||||
PrependedText("contact_twitter", "@", placeholder="username"),
|
||||
"contact_facebook",
|
||||
"contact_other",
|
||||
"shown_on_other_platforms",
|
||||
"shown_on_other_platforms_detail",
|
||||
FormActions(PreviousButton(), NextButton()),
|
||||
),
|
||||
Tab(
|
||||
_("Uploads"),
|
||||
'official_project_documents',
|
||||
'official_project_documents_files',
|
||||
'other_documents',
|
||||
'other_documents_files',
|
||||
"official_project_documents",
|
||||
"official_project_documents_files",
|
||||
"other_documents",
|
||||
"other_documents_files",
|
||||
FormActions(
|
||||
PreviousButton(),
|
||||
Submit('submit', _('Submit'), css_class="btn-success pull-right")
|
||||
Submit(
|
||||
"submit", _("Submit"), css_class="btn-success pull-right"
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
)))
|
||||
|
||||
class Meta(BaseCaseStudyForm.Meta):
|
||||
exclude = ('approved',)
|
||||
exclude = ("approved",)
|
||||
|
||||
class Media:
|
||||
js = (
|
||||
'files/upload.js',
|
||||
)
|
||||
js = ("files/upload.js",)
|
||||
|
@ -13,35 +13,60 @@ class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CaseStudy',
|
||||
name="CaseStudy",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('location', django.contrib.gis.db.models.fields.PointField(srid=4326)),
|
||||
('project_name', models.CharField(max_length=128)),
|
||||
('supply_chain', models.CharField(choices=[('A', 'Option A'), ('B', 'Option B')], max_length=1)),
|
||||
('generation_type', models.CharField(choices=[('W', 'Wind'), ('S', 'Solar')], max_length=1)),
|
||||
('associated_companies', models.CharField(max_length=128)),
|
||||
('financiers', models.CharField(max_length=128)),
|
||||
('important_lenders', models.CharField(max_length=128)),
|
||||
('country', django_countries.fields.CountryField(max_length=2)),
|
||||
('affects_indigenous', models.BooleanField()),
|
||||
('affects_indigenous_reason', models.TextField()),
|
||||
('proposed_start', models.DateField()),
|
||||
('proposed_completion', models.DateField()),
|
||||
('description', models.TextField()),
|
||||
('link_to_forum', models.URLField()),
|
||||
('image', models.ImageField(upload_to='')),
|
||||
('references', models.TextField()),
|
||||
('commodities', models.CharField(max_length=128)),
|
||||
('like_to_engage_developer', models.BooleanField()),
|
||||
('like_to_engage_investors', models.BooleanField()),
|
||||
('author', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("location", django.contrib.gis.db.models.fields.PointField(srid=4326)),
|
||||
("project_name", models.CharField(max_length=128)),
|
||||
(
|
||||
"supply_chain",
|
||||
models.CharField(
|
||||
choices=[("A", "Option A"), ("B", "Option B")], max_length=1
|
||||
),
|
||||
),
|
||||
(
|
||||
"generation_type",
|
||||
models.CharField(
|
||||
choices=[("W", "Wind"), ("S", "Solar")], max_length=1
|
||||
),
|
||||
),
|
||||
("associated_companies", models.CharField(max_length=128)),
|
||||
("financiers", models.CharField(max_length=128)),
|
||||
("important_lenders", models.CharField(max_length=128)),
|
||||
("country", django_countries.fields.CountryField(max_length=2)),
|
||||
("affects_indigenous", models.BooleanField()),
|
||||
("affects_indigenous_reason", models.TextField()),
|
||||
("proposed_start", models.DateField()),
|
||||
("proposed_completion", models.DateField()),
|
||||
("description", models.TextField()),
|
||||
("link_to_forum", models.URLField()),
|
||||
("image", models.ImageField(upload_to="")),
|
||||
("references", models.TextField()),
|
||||
("commodities", models.CharField(max_length=128)),
|
||||
("like_to_engage_developer", models.BooleanField()),
|
||||
("like_to_engage_investors", models.BooleanField()),
|
||||
(
|
||||
"author",
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
editable=False,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
]
|
||||
|
@ -7,14 +7,10 @@ from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0001_initial'),
|
||||
]
|
||||
dependencies = [("map", "0001_initial")]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='casestudy',
|
||||
old_name='location',
|
||||
new_name='geom',
|
||||
),
|
||||
model_name="casestudy", old_name="location", new_name="geom"
|
||||
)
|
||||
]
|
||||
|
@ -7,14 +7,10 @@ from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0002_auto_20170520_0139'),
|
||||
]
|
||||
dependencies = [("map", "0002_auto_20170520_0139")]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='casestudy',
|
||||
old_name='geom',
|
||||
new_name='location',
|
||||
),
|
||||
model_name="casestudy", old_name="geom", new_name="location"
|
||||
)
|
||||
]
|
||||
|
@ -7,163 +7,210 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0003_auto_20170521_0643'),
|
||||
]
|
||||
dependencies = [("map", "0003_auto_20170521_0643")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="casestudy", name="affects_indigenous"),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous_reason',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='associated_companies',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='commodities',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='description',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='financiers',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='generation_type',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='important_lenders',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='like_to_engage_developer',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='like_to_engage_investors',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='link_to_forum',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='project_name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='proposed_completion',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='proposed_start',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='references',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='supply_chain',
|
||||
model_name="casestudy", name="affects_indigenous_reason"
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="associated_companies"),
|
||||
migrations.RemoveField(model_name="casestudy", name="commodities"),
|
||||
migrations.RemoveField(model_name="casestudy", name="description"),
|
||||
migrations.RemoveField(model_name="casestudy", name="financiers"),
|
||||
migrations.RemoveField(model_name="casestudy", name="generation_type"),
|
||||
migrations.RemoveField(model_name="casestudy", name="important_lenders"),
|
||||
migrations.RemoveField(model_name="casestudy", name="like_to_engage_developer"),
|
||||
migrations.RemoveField(model_name="casestudy", name="like_to_engage_investors"),
|
||||
migrations.RemoveField(model_name="casestudy", name="link_to_forum"),
|
||||
migrations.RemoveField(model_name="casestudy", name="project_name"),
|
||||
migrations.RemoveField(model_name="casestudy", name="proposed_completion"),
|
||||
migrations.RemoveField(model_name="casestudy", name="proposed_start"),
|
||||
migrations.RemoveField(model_name="casestudy", name="references"),
|
||||
migrations.RemoveField(model_name="casestudy", name="supply_chain"),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Affects Indigenous - Details',
|
||||
field=models.CharField(default='', help_text='What group of indigenous people does the community belong to?', max_length=256),
|
||||
model_name="casestudy",
|
||||
name="Affects Indigenous - Details",
|
||||
field=models.CharField(
|
||||
default="",
|
||||
help_text="What group of indigenous people does the community belong to?",
|
||||
max_length=256,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Affects indigenous people?',
|
||||
field=models.BooleanField(default=False, help_text='Does the project affect indigenous people?'),
|
||||
model_name="casestudy",
|
||||
name="Affects indigenous people?",
|
||||
field=models.BooleanField(
|
||||
default=False, help_text="Does the project affect indigenous people?"
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Approximate land area',
|
||||
field=models.IntegerField(default=0, help_text='The area of land covered by the project (in km²)'),
|
||||
model_name="casestudy",
|
||||
name="Approximate land area",
|
||||
field=models.IntegerField(
|
||||
default=0, help_text="The area of land covered by the project (in km²)"
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Community Voices',
|
||||
field=models.TextField(default='', help_text='Add any direct quotes from members of the community that relate to this project'),
|
||||
model_name="casestudy",
|
||||
name="Community Voices",
|
||||
field=models.TextField(
|
||||
default="",
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Describe the ecosystem',
|
||||
field=models.CharField(default='', help_text='In your own words, add more detail about the ecosystem.', max_length=256),
|
||||
model_name="casestudy",
|
||||
name="Describe the ecosystem",
|
||||
field=models.CharField(
|
||||
default="",
|
||||
help_text="In your own words, add more detail about the ecosystem.",
|
||||
max_length=256,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Entry Name',
|
||||
field=models.CharField(default='', help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128),
|
||||
model_name="casestudy",
|
||||
name="Entry Name",
|
||||
field=models.CharField(
|
||||
default="",
|
||||
help_text="Enter the name of the entry. This should usually be the name of project.",
|
||||
max_length=128,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Full Description',
|
||||
field=models.TextField(default='', help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.'),
|
||||
model_name="casestudy",
|
||||
name="Full Description",
|
||||
field=models.TextField(
|
||||
default="",
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Land ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], default='', help_text='What type of ownership does the land fall under?', max_length=3),
|
||||
model_name="casestudy",
|
||||
name="Land ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private Land"),
|
||||
("PUB", "Public Land"),
|
||||
("COM", "Community Land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
default="",
|
||||
help_text="What type of ownership does the land fall under?",
|
||||
max_length=3,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Land ownership details',
|
||||
field=models.CharField(default='', help_text='Add any details and other remarks about the land ownership', max_length=256),
|
||||
model_name="casestudy",
|
||||
name="Land ownership details",
|
||||
field=models.CharField(
|
||||
default="",
|
||||
help_text="Add any details and other remarks about the land ownership",
|
||||
max_length=256,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Location',
|
||||
field=models.CharField(choices=[('RUR', 'Rural'), ('URB', 'Urban')], default=None, help_text='Select the context that is most applicable to this case study.', max_length=1),
|
||||
model_name="casestudy",
|
||||
name="Location",
|
||||
field=models.CharField(
|
||||
choices=[("RUR", "Rural"), ("URB", "Urban")],
|
||||
default=None,
|
||||
help_text="Select the context that is most applicable to this case study.",
|
||||
max_length=1,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Positive or negative?',
|
||||
field=models.CharField(choices=[('POS', 'Positive'), ('NEG', 'Negative')], default=None, help_text='Is the case study a positive case or a negative case?', max_length=1),
|
||||
model_name="casestudy",
|
||||
name="Positive or negative?",
|
||||
field=models.CharField(
|
||||
choices=[("POS", "Positive"), ("NEG", "Negative")],
|
||||
default=None,
|
||||
help_text="Is the case study a positive case or a negative case?",
|
||||
max_length=1,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Sector of economy',
|
||||
field=models.CharField(choices=[('Renewable Energy Generation', (('WND', 'Wind'), ('SOL', 'Solar'), ('HYD', 'Hydro'))), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], default=None, help_text='Which sector of the renewable energy economy is most relevant?', max_length=2),
|
||||
model_name="casestudy",
|
||||
name="Sector of economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
"Renewable Energy Generation",
|
||||
(("WND", "Wind"), ("SOL", "Solar"), ("HYD", "Hydro")),
|
||||
),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=2,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Status of Project',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], default=None, help_text='What is the status of the current project?', max_length=6),
|
||||
model_name="casestudy",
|
||||
name="Status of Project",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing Project"),
|
||||
("UCONST", "Under Construction"),
|
||||
("PROJCD", "Projected Project"),
|
||||
],
|
||||
default=None,
|
||||
help_text="What is the status of the current project?",
|
||||
max_length=6,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Synopsis',
|
||||
field=models.TextField(default=None, help_text='Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', max_length=500),
|
||||
model_name="casestudy",
|
||||
name="Synopsis",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)",
|
||||
max_length=500,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='Type of ecosystem',
|
||||
field=models.CharField(choices=[('Water Based', (('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'))), ('Land Based', (('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')))], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6),
|
||||
model_name="casestudy",
|
||||
name="Type of ecosystem",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
"Water Based",
|
||||
(
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Land Based",
|
||||
(
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
),
|
||||
),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of ecosystem.",
|
||||
max_length=6,
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
|
@ -7,159 +7,228 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0004_auto_20171006_1559'),
|
||||
]
|
||||
dependencies = [("map", "0004_auto_20171006_1559")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Affects Indigenous - Details',
|
||||
model_name="casestudy", name="Affects Indigenous - Details"
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Affects indigenous people?',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Approximate land area',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Community Voices',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Describe the ecosystem',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Entry Name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Full Description',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Land ownership',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Land ownership details',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Location',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Positive or negative?',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Sector of economy',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Status of Project',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Synopsis',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='Type of ecosystem',
|
||||
model_name="casestudy", name="Affects indigenous people?"
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="Approximate land area"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Community Voices"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Describe the ecosystem"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Entry Name"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Full Description"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Land ownership"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Land ownership details"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Location"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Positive or negative?"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Sector of economy"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Status of Project"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Synopsis"),
|
||||
migrations.RemoveField(model_name="casestudy", name="Type of ecosystem"),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous',
|
||||
field=models.BooleanField(default=None, help_text='Does the project affect indigenous people?', verbose_name='Affects indigenous people?'),
|
||||
model_name="casestudy",
|
||||
name="affects_indigenous",
|
||||
field=models.BooleanField(
|
||||
default=None,
|
||||
help_text="Does the project affect indigenous people?",
|
||||
verbose_name="Affects indigenous people?",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous_detail',
|
||||
field=models.CharField(default=None, help_text='What group of indigenous people does the community belong to?', max_length=256, verbose_name='Affects Indigenous - Details'),
|
||||
model_name="casestudy",
|
||||
name="affects_indigenous_detail",
|
||||
field=models.CharField(
|
||||
default=None,
|
||||
help_text="What group of indigenous people does the community belong to?",
|
||||
max_length=256,
|
||||
verbose_name="Affects Indigenous - Details",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='area_of_land',
|
||||
field=models.IntegerField(default=None, help_text='The area of land covered by the project (in km²)', verbose_name='Approximate land area'),
|
||||
model_name="casestudy",
|
||||
name="area_of_land",
|
||||
field=models.IntegerField(
|
||||
default=None,
|
||||
help_text="The area of land covered by the project (in km²)",
|
||||
verbose_name="Approximate land area",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(default=None, help_text='Add any direct quotes from members of the community that relate to this project', verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='describe_ecosystem',
|
||||
field=models.CharField(default=None, help_text='In your own words, add more detail about the ecosystem.', max_length=256, verbose_name='Describe the ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="describe_ecosystem",
|
||||
field=models.CharField(
|
||||
default=None,
|
||||
help_text="In your own words, add more detail about the ecosystem.",
|
||||
max_length=256,
|
||||
verbose_name="Describe the ecosystem",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(default=None, help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128, verbose_name='Entry Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
default=None,
|
||||
help_text="Enter the name of the entry. This should usually be the name of project.",
|
||||
max_length=128,
|
||||
verbose_name="Entry Name",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(default=None, help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full Description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full Description",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], default=None, help_text='What type of ownership does the land fall under?', max_length=3, verbose_name='Land ownership'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private Land"),
|
||||
("PUB", "Public Land"),
|
||||
("COM", "Community Land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
default=None,
|
||||
help_text="What type of ownership does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(default=None, help_text='Add any details and other remarks about the land ownership', max_length=256, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
default=None,
|
||||
help_text="Add any details and other remarks about the land ownership",
|
||||
max_length=256,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='location_context',
|
||||
field=models.CharField(choices=[('RUR', 'Rural'), ('URB', 'Urban')], default=None, help_text='Select the context that is most applicable to this case study.', max_length=1, verbose_name='Location'),
|
||||
model_name="casestudy",
|
||||
name="location_context",
|
||||
field=models.CharField(
|
||||
choices=[("RUR", "Rural"), ("URB", "Urban")],
|
||||
default=None,
|
||||
help_text="Select the context that is most applicable to this case study.",
|
||||
max_length=1,
|
||||
verbose_name="Location",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='positive_or_negative',
|
||||
field=models.CharField(choices=[('POS', 'Positive'), ('NEG', 'Negative')], default=None, help_text='Is the case study a positive case or a negative case?', max_length=1, verbose_name='Positive or negative?'),
|
||||
model_name="casestudy",
|
||||
name="positive_or_negative",
|
||||
field=models.CharField(
|
||||
choices=[("POS", "Positive"), ("NEG", "Negative")],
|
||||
default=None,
|
||||
help_text="Is the case study a positive case or a negative case?",
|
||||
max_length=1,
|
||||
verbose_name="Positive or negative?",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], default=None, help_text='What is the status of the current project?', max_length=6, verbose_name='Status of Project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing Project"),
|
||||
("UCONST", "Under Construction"),
|
||||
("PROJCD", "Projected Project"),
|
||||
],
|
||||
default=None,
|
||||
help_text="What is the status of the current project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of Project",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('Renewable Energy Generation', (('WND', 'Wind'), ('SOL', 'Solar'), ('HYD', 'Hydro'))), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], default=None, help_text='Which sector of the renewable energy economy is most relevant?', max_length=2, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
"Renewable Energy Generation",
|
||||
(("WND", "Wind"), ("SOL", "Solar"), ("HYD", "Hydro")),
|
||||
),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=2,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='synopsis',
|
||||
field=models.TextField(default=None, help_text='Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', max_length=500, verbose_name='Synopsis'),
|
||||
model_name="casestudy",
|
||||
name="synopsis",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)",
|
||||
max_length=500,
|
||||
verbose_name="Synopsis",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=models.CharField(choices=[('Water Based', (('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'))), ('Land Based', (('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')))], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6, verbose_name='Type of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
"Water Based",
|
||||
(
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Land Based",
|
||||
(
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
),
|
||||
),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of ecosystem.",
|
||||
max_length=6,
|
||||
verbose_name="Type of ecosystem",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
|
@ -7,24 +7,44 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0005_auto_20171006_2033'),
|
||||
]
|
||||
dependencies = [("map", "0005_auto_20171006_2033")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location_context',
|
||||
field=models.CharField(choices=[('RUR', 'Rural'), ('URB', 'Urban')], help_text='Select the context that is most applicable to this case study.', max_length=3, verbose_name='Location'),
|
||||
model_name="casestudy",
|
||||
name="location_context",
|
||||
field=models.CharField(
|
||||
choices=[("RUR", "Rural"), ("URB", "Urban")],
|
||||
help_text="Select the context that is most applicable to this case study.",
|
||||
max_length=3,
|
||||
verbose_name="Location",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='positive_or_negative',
|
||||
field=models.CharField(choices=[('P', 'Positive'), ('N', 'Negative')], help_text='Is the case study a positive case or a negative case?', max_length=1, verbose_name='Positive or negative?'),
|
||||
model_name="casestudy",
|
||||
name="positive_or_negative",
|
||||
field=models.CharField(
|
||||
choices=[("P", "Positive"), ("N", "Negative")],
|
||||
help_text="Is the case study a positive case or a negative case?",
|
||||
max_length=1,
|
||||
verbose_name="Positive or negative?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('Renewable Energy Generation', (('WND', 'Wind'), ('SOL', 'Solar'), ('HYD', 'Hydro'))), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
"Renewable Energy Generation",
|
||||
(("WND", "Wind"), ("SOL", "Solar"), ("HYD", "Hydro")),
|
||||
),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,14 +8,14 @@ import django_extensions.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0006_auto_20171007_1349'),
|
||||
]
|
||||
dependencies = [("map", "0006_auto_20171007_1349")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='slug',
|
||||
field=django_extensions.db.fields.AutoSlugField(blank=True, editable=False, populate_from=['entry_name']),
|
||||
model_name="casestudy",
|
||||
name="slug",
|
||||
field=django_extensions.db.fields.AutoSlugField(
|
||||
blank=True, editable=False, populate_from=["entry_name"]
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,14 +7,12 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0007_casestudy_slug'),
|
||||
]
|
||||
dependencies = [("map", "0007_casestudy_slug")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='date_created',
|
||||
model_name="casestudy",
|
||||
name="date_created",
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,20 +7,18 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0008_casestudy_date_created'),
|
||||
]
|
||||
dependencies = [("map", "0008_casestudy_date_created")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='video',
|
||||
field=models.URLField(default="", max_length=43, verbose_name='Video'),
|
||||
model_name="casestudy",
|
||||
name="video",
|
||||
field=models.URLField(default="", max_length=43, verbose_name="Video"),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='image',
|
||||
field=models.ImageField(upload_to='', verbose_name='Image'),
|
||||
model_name="casestudy",
|
||||
name="image",
|
||||
field=models.ImageField(upload_to="", verbose_name="Image"),
|
||||
),
|
||||
]
|
||||
|
@ -8,104 +8,358 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0009_auto_20171007_1544'),
|
||||
]
|
||||
dependencies = [("map", "0009_auto_20171007_1544")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='completion_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1977, 1977), (1978, 1978), (1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057)], default=None, help_text="Select the year the project was completed. If the project hasn't finished, select the projected completion year.", null=True, verbose_name='Completion year'),
|
||||
model_name="casestudy",
|
||||
name="completion_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1977, 1977),
|
||||
(1978, 1978),
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project was completed. If the project hasn't finished, select the projected completion year.",
|
||||
null=True,
|
||||
verbose_name="Completion year",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='direct_comms',
|
||||
field=models.TextField(default=None, help_text='Add any reports of direct communication between community members and representatives of developers/companies/investors.', max_length=500, null=True, verbose_name='Reports of direct communications'),
|
||||
model_name="casestudy",
|
||||
name="direct_comms",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Reports of direct communications",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.CharField(blank=True, default=None, help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers.", max_length=120, null=True, verbose_name='Energy consumers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Energy consumers",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='financial_institutions',
|
||||
field=models.CharField(blank=True, default=None, help_text='List banks and other financial institutions that have or are considering extending loans or guarantees to the project. Separate with a comma.', max_length=120, null=True, verbose_name='Financial institutions'),
|
||||
model_name="casestudy",
|
||||
name="financial_institutions",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List banks and other financial institutions that have or are considering extending loans or guarantees to the project. Separate with a comma.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Financial institutions",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='image_caption',
|
||||
field=models.CharField(default=None, max_length=500, null=True, verbose_name='Image caption'),
|
||||
model_name="casestudy",
|
||||
name="image_caption",
|
||||
field=models.CharField(
|
||||
default=None, max_length=500, null=True, verbose_name="Image caption"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='image_credit',
|
||||
field=models.CharField(default=None, max_length=200, null=True, verbose_name='Image credit(s)'),
|
||||
model_name="casestudy",
|
||||
name="image_credit",
|
||||
field=models.CharField(
|
||||
default=None, max_length=200, null=True, verbose_name="Image credit(s)"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_independent',
|
||||
field=models.TextField(default=None, help_text='Provide any links to grassroots/independent media coverage.', max_length=500, null=True, verbose_name='Independent grassroots reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_independent",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Provide any links to grassroots/independent media coverage.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Independent grassroots reports",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_mainstream',
|
||||
field=models.TextField(default=None, help_text='Provide any links to mainstream media coverage.', max_length=500, null=True, verbose_name='Links to media reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_mainstream",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Provide any links to mainstream media coverage.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Links to media reports",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='project_owners',
|
||||
field=models.CharField(blank=True, default=None, help_text='List companies or organisations that own the project and/or facilities. Separate with a comma.', max_length=120, null=True, verbose_name='Project and facility owners'),
|
||||
model_name="casestudy",
|
||||
name="project_owners",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List companies or organisations that own the project and/or facilities. Separate with a comma.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Project and facility owners",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shareholders',
|
||||
field=models.CharField(blank=True, default=None, help_text="List shareholders of the project owners you've just listed. Separate with a comma.", max_length=120, null=True, verbose_name='Shareholders of the project owners'),
|
||||
model_name="casestudy",
|
||||
name="shareholders",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List shareholders of the project owners you've just listed. Separate with a comma.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Shareholders of the project owners",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='social_media_links',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any links to social media accounts directly relating to the project.', max_length=500, null=True, verbose_name='Social media links'),
|
||||
model_name="casestudy",
|
||||
name="social_media_links",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any links to social media accounts directly relating to the project.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Social media links",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='start_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1977, 1977), (1978, 1978), (1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057)], default=None, help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.", null=True, verbose_name='Start year'),
|
||||
model_name="casestudy",
|
||||
name="start_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1977, 1977),
|
||||
(1978, 1978),
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.",
|
||||
null=True,
|
||||
verbose_name="Start year",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='video_caption',
|
||||
field=models.CharField(default=None, max_length=500, null=True, verbose_name='Video caption'),
|
||||
model_name="casestudy",
|
||||
name="video_caption",
|
||||
field=models.CharField(
|
||||
default=None, max_length=500, null=True, verbose_name="Video caption"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='video_credit',
|
||||
field=models.CharField(default=None, max_length=500, null=True, verbose_name='Video credit(s)'),
|
||||
model_name="casestudy",
|
||||
name="video_credit",
|
||||
field=models.CharField(
|
||||
default=None, max_length=500, null=True, verbose_name="Video credit(s)"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous',
|
||||
field=models.BooleanField(help_text='Does the project affect indigenous communities?', verbose_name='Affects indigenous people?'),
|
||||
model_name="casestudy",
|
||||
name="affects_indigenous",
|
||||
field=models.BooleanField(
|
||||
help_text="Does the project affect indigenous communities?",
|
||||
verbose_name="Affects indigenous people?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(help_text='Add any direct quotes from members of the community that relate to this project', verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='date_created',
|
||||
model_name="casestudy",
|
||||
name="date_created",
|
||||
field=models.DateTimeField(auto_now_add=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video',
|
||||
field=models.URLField(help_text='Copy the URL to a related YouTube™ video that relates to the case study.', max_length=43, validators=[apps.map.validators.YoutubeURLValidator()], verbose_name='YouTube Video'),
|
||||
model_name="casestudy",
|
||||
name="video",
|
||||
field=models.URLField(
|
||||
help_text="Copy the URL to a related YouTube™ video that relates to the case study.",
|
||||
max_length=43,
|
||||
validators=[apps.map.validators.YoutubeURLValidator()],
|
||||
verbose_name="YouTube Video",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,38 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0010_auto_20171011_1606'),
|
||||
]
|
||||
dependencies = [("map", "0010_auto_20171011_1606")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('SSWE', 'Small-scale wind energy (less than 500kW)'), ('LSWE', 'Large-scale wind energy (more than 500kW)'), ('SSPV', 'Small-scale photovoltaic electricity (less than 500kW)'), ('LSPV', 'Large-scale photovoltaic electricity (more than 500kW)'), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('SHYD', 'Small hydroelectric (less than 1MW)'), ('MHYD', 'Medium hydroelectric (between 1-20MW)'), ('LHYD', 'Large hydroelectric (more than 20MW - often not considered renewable)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SSWE", "Small-scale wind energy (less than 500kW)"),
|
||||
("LSWE", "Large-scale wind energy (more than 500kW)"),
|
||||
("SSPV", "Small-scale photovoltaic electricity (less than 500kW)"),
|
||||
("LSPV", "Large-scale photovoltaic electricity (more than 500kW)"),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("SHYD", "Small hydroelectric (less than 1MW)"),
|
||||
("MHYD", "Medium hydroelectric (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large hydroelectric (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -9,39 +9,92 @@ import django_countries.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0011_casestudy_generation_technology'),
|
||||
]
|
||||
dependencies = [("map", "0011_casestudy_generation_technology")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)', max_length=200, null=True, verbose_name='Generation technology detail'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Generation technology detail",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='total_generation_capacity',
|
||||
field=models.IntegerField(blank=True, default=None, help_text='Please enter the total generation capacity of the project in kW', null=True, verbose_name='Total generation capacity (in kW)'),
|
||||
model_name="casestudy",
|
||||
name="total_generation_capacity",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Please enter the total generation capacity of the project in kW",
|
||||
null=True,
|
||||
verbose_name="Total generation capacity (in kW)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='country',
|
||||
field=django_countries.fields.CountryField(help_text='Select the country of the project', max_length=2, verbose_name='Country field'),
|
||||
model_name="casestudy",
|
||||
name="country",
|
||||
field=django_countries.fields.CountryField(
|
||||
help_text="Select the country of the project",
|
||||
max_length=2,
|
||||
verbose_name="Country field",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('SSWE', 'Small-scale wind energy (less than 500kW)'), ('LSWE', 'Large-scale wind energy (more than 500kW)'), ('SSPV', 'Small-scale photovoltaic electricity (less than 500kW)'), ('LSPV', 'Large-scale photovoltaic electricity (more than 500kW)'), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('SHYD', 'Small hydroelectric (less than 1MW)'), ('MHYD', 'Medium hydroelectric (between 1-20MW)'), ('LHYD', 'Large hydroelectric (more than 20MW - often not considered renewable)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SSWE", "Small-scale wind energy (less than 500kW)"),
|
||||
("LSWE", "Large-scale wind energy (more than 500kW)"),
|
||||
("SSPV", "Small-scale photovoltaic electricity (less than 500kW)"),
|
||||
("LSPV", "Large-scale photovoltaic electricity (more than 500kW)"),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("SHYD", "Small hydroelectric (less than 1MW)"),
|
||||
("MHYD", "Medium hydroelectric (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large hydroelectric (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location',
|
||||
field=django.contrib.gis.db.models.fields.PointField(help_text='Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important)', srid=4326, verbose_name='Project location'),
|
||||
model_name="casestudy",
|
||||
name="location",
|
||||
field=django.contrib.gis.db.models.fields.PointField(
|
||||
help_text="Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important)",
|
||||
srid=4326,
|
||||
verbose_name="Project location",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,29 +7,88 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0012_auto_20171012_1610'),
|
||||
]
|
||||
dependencies = [("map", "0012_auto_20171012_1610")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='technical_or_economic_details',
|
||||
field=models.CharField(blank=True, default=None, help_text='Specify any additional technical or economic details relating to the project.', max_length=500, null=True, verbose_name='Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="technical_or_economic_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Specify any additional technical or economic details relating to the project.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Additional technical or economic details",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='total_investment',
|
||||
field=models.IntegerField(blank=True, default=None, help_text='The approximate total investment for the project in USD.', null=True, verbose_name='Total investment (in USD)'),
|
||||
model_name="casestudy",
|
||||
name="total_investment",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="The approximate total investment for the project in USD.",
|
||||
null=True,
|
||||
verbose_name="Total investment (in USD)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='total_generation_capacity',
|
||||
field=models.PositiveIntegerField(blank=True, default=None, help_text='Please enter the total generation capacity of the project in kW', null=True, verbose_name='Total generation capacity (in kW)'),
|
||||
model_name="casestudy",
|
||||
name="total_generation_capacity",
|
||||
field=models.PositiveIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Please enter the total generation capacity of the project in kW",
|
||||
null=True,
|
||||
verbose_name="Total generation capacity (in kW)",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,39 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0013_auto_20171012_1640'),
|
||||
]
|
||||
dependencies = [("map", "0013_auto_20171012_1640")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (grid lines, substations etc)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (grid lines, substations etc)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='power_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text="If you answered 'others', please specify the power technologies.", max_length=128, null=True, verbose_name='Other power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you answered 'others', please specify the power technologies.",
|
||||
max_length=128,
|
||||
null=True,
|
||||
verbose_name="Other power technology",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,30 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0014_auto_20171025_2035'),
|
||||
]
|
||||
dependencies = [("map", "0014_auto_20171025_2035")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='energy_storage_capacity',
|
||||
field=models.IntegerField(blank=True, default=None, help_text='Enter the total capacity of the energy storage system.', null=True, verbose_name='Energy storage capacity'),
|
||||
model_name="casestudy",
|
||||
name="energy_storage_capacity",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the total capacity of the energy storage system.",
|
||||
null=True,
|
||||
verbose_name="Energy storage capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='What group of indigenous people does the community belong to?', max_length=256, null=True, verbose_name='Affects Indigenous - Details'),
|
||||
model_name="casestudy",
|
||||
name="affects_indigenous_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="What group of indigenous people does the community belong to?",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Affects Indigenous - Details",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,34 +7,63 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0015_auto_20171030_1550'),
|
||||
]
|
||||
dependencies = [("map", "0015_auto_20171030_1550")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='definition_of_affected_territories',
|
||||
field=models.CharField(blank=True, default=None, help_text='In your own words, define the territories that the project will affect.', max_length=512, null=True, verbose_name='Definition of affected territories'),
|
||||
model_name="casestudy",
|
||||
name="definition_of_affected_territories",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="In your own words, define the territories that the project will affect.",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Definition of affected territories",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='official_project_documents',
|
||||
field=models.FileField(blank=True, default=None, help_text='Attach any legal or official documents that relate to the project.', null=True, upload_to='', verbose_name='Official project documents'),
|
||||
model_name="casestudy",
|
||||
name="official_project_documents",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Attach any legal or official documents that relate to the project.",
|
||||
null=True,
|
||||
upload_to="",
|
||||
verbose_name="Official project documents",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='other_documents',
|
||||
field=models.FileField(blank=True, default=None, help_text='Attach any other documents that relate to the project.', null=True, upload_to='', verbose_name='Other documents'),
|
||||
model_name="casestudy",
|
||||
name="other_documents",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Attach any other documents that relate to the project.",
|
||||
null=True,
|
||||
upload_to="",
|
||||
verbose_name="Other documents",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms',
|
||||
field=models.NullBooleanField(default=None, help_text='Tick the box if you would like us to show this case study on other social media platforms', verbose_name='Show on other platforms?'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms",
|
||||
field=models.NullBooleanField(
|
||||
default=None,
|
||||
help_text="Tick the box if you would like us to show this case study on other social media platforms",
|
||||
verbose_name="Show on other platforms?",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms_detail',
|
||||
field=models.CharField(blank=True, help_text='List the social media platforms that you would like us to specifically publish the case study on', max_length=128, null=True, verbose_name='Show on other platforms - Detail'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="List the social media platforms that you would like us to specifically publish the case study on",
|
||||
max_length=128,
|
||||
null=True,
|
||||
verbose_name="Show on other platforms - Detail",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,39 +7,82 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0016_auto_20171031_1442'),
|
||||
]
|
||||
dependencies = [("map", "0016_auto_20171031_1442")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='associated_infrastructure',
|
||||
field=models.CharField(blank=True, default=None, help_text='List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail.', max_length=256, null=True, verbose_name='Associated infrastructure in the locality'),
|
||||
model_name="casestudy",
|
||||
name="associated_infrastructure",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail.",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Associated infrastructure in the locality",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='discharge_time',
|
||||
field=models.BigIntegerField(blank=True, default=None, help_text='Enter the time it takes to discharge from full capacity at maximum power output (in seconds) (1h=3600s)', null=True, verbose_name='Time for discharge from full capacity'),
|
||||
model_name="casestudy",
|
||||
name="discharge_time",
|
||||
field=models.BigIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the time it takes to discharge from full capacity at maximum power output (in seconds) (1h=3600s)",
|
||||
null=True,
|
||||
verbose_name="Time for discharge from full capacity",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='maximum_power_output',
|
||||
field=models.BigIntegerField(blank=True, default=None, help_text='Enter the maximum power output of the storage system in Watts (W). (W=J/s)', null=True, verbose_name='Maximum power output'),
|
||||
model_name="casestudy",
|
||||
name="maximum_power_output",
|
||||
field=models.BigIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the maximum power output of the storage system in Watts (W). (W=J/s)",
|
||||
null=True,
|
||||
verbose_name="Maximum power output",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction',
|
||||
field=models.CharField(blank=True, choices=[('SUR', 'Surface (open pit/open cast/open cut mining'), ('SUB', 'Sub-surface (underground mining)'), ('SEA', 'Seabed mining'), ('URB', 'Urban mining/recycling'), ('OTH', 'Other')], default=None, max_length=2, null=True, verbose_name='Type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SUR", "Surface (open pit/open cast/open cut mining"),
|
||||
("SUB", "Sub-surface (underground mining)"),
|
||||
("SEA", "Seabed mining"),
|
||||
("URB", "Urban mining/recycling"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
default=None,
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Type of extraction",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction_other',
|
||||
field=models.CharField(blank=True, default=None, max_length=128, null=True, verbose_name='Other type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=128,
|
||||
null=True,
|
||||
verbose_name="Other type of extraction",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,23 +7,32 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0017_auto_20171101_1508'),
|
||||
]
|
||||
dependencies = [("map", "0017_auto_20171101_1508")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='definition_of_affected_territories',
|
||||
model_name="casestudy", name="definition_of_affected_territories"
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='generation_equipment_supplier',
|
||||
field=models.TextField(blank=True, default=None, help_text='Enter the supplier of the generation equipment. (E.g. Siemens)', null=True, verbose_name='Generation equipment supplier'),
|
||||
model_name="casestudy",
|
||||
name="generation_equipment_supplier",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the supplier of the generation equipment. (E.g. Siemens)",
|
||||
null=True,
|
||||
verbose_name="Generation equipment supplier",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='name_of_territory_or_area',
|
||||
field=models.CharField(blank=True, default=None, max_length=512, null=True, verbose_name='Name of territory or area'),
|
||||
model_name="casestudy",
|
||||
name="name_of_territory_or_area",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Name of territory or area",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,19 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0018_auto_20171102_2205'),
|
||||
]
|
||||
dependencies = [("map", "0018_auto_20171102_2205")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='coordinate_reference_system',
|
||||
field=models.CharField(blank=True, default=None, help_text='Enter the coordinate reference system of the shapefiles.', max_length=12, null=True, verbose_name='Coordinate reference system'),
|
||||
model_name="casestudy",
|
||||
name="coordinate_reference_system",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the coordinate reference system of the shapefiles.",
|
||||
max_length=12,
|
||||
null=True,
|
||||
verbose_name="Coordinate reference system",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,18 +7,25 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0019_casestudy_coordinate_reference_system'),
|
||||
]
|
||||
dependencies = [("map", "0019_casestudy_coordinate_reference_system")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction_other',
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="type_of_extraction_other"),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction',
|
||||
field=models.CharField(blank=True, choices=[('SUR', 'Surface (open pit/open cast/open cut mining'), ('SUB', 'Sub-surface (underground mining)'), ('SEA', 'Seabed mining'), ('URB', 'Urban mining/recycling')], default=None, max_length=2, null=True, verbose_name='Type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SUR", "Surface (open pit/open cast/open cut mining"),
|
||||
("SUB", "Sub-surface (underground mining)"),
|
||||
("SEA", "Seabed mining"),
|
||||
("URB", "Urban mining/recycling"),
|
||||
],
|
||||
default=None,
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Type of extraction",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,31 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0020_auto_20171102_2219'),
|
||||
]
|
||||
dependencies = [("map", "0020_auto_20171102_2219")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='project_life_span',
|
||||
field=models.CharField(blank=None, default=None, help_text='e.g. 12 years of production, 15 years overall', max_length=200, null=True, verbose_name='Project life span'),
|
||||
model_name="casestudy",
|
||||
name="project_life_span",
|
||||
field=models.CharField(
|
||||
blank=None,
|
||||
default=None,
|
||||
help_text="e.g. 12 years of production, 15 years overall",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Project life span",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='size_of_concessions',
|
||||
field=models.CharField(blank=None, default=None, help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')", max_length=200, null=True, verbose_name='Size of concessions'),
|
||||
model_name="casestudy",
|
||||
name="size_of_concessions",
|
||||
field=models.CharField(
|
||||
blank=None,
|
||||
default=None,
|
||||
help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Size of concessions",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,19 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0021_auto_20171102_2223'),
|
||||
]
|
||||
dependencies = [("map", "0021_auto_20171102_2223")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='projected_production_of_commodities',
|
||||
field=models.CharField(blank=None, default=None, help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'", max_length=256, null=True, verbose_name='Projected production of key commodities'),
|
||||
model_name="casestudy",
|
||||
name="projected_production_of_commodities",
|
||||
field=models.CharField(
|
||||
blank=None,
|
||||
default=None,
|
||||
help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Projected production of key commodities",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,19 +7,30 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0022_casestudy_projected_production_of_commodities'),
|
||||
]
|
||||
dependencies = [("map", "0022_casestudy_projected_production_of_commodities")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='approximate_total_investment',
|
||||
field=models.PositiveIntegerField(blank=None, default=None, help_text='Enter the approximate total investment in USD ($).', null=True, verbose_name='Approximate total investment'),
|
||||
model_name="casestudy",
|
||||
name="approximate_total_investment",
|
||||
field=models.PositiveIntegerField(
|
||||
blank=None,
|
||||
default=None,
|
||||
help_text="Enter the approximate total investment in USD ($).",
|
||||
null=True,
|
||||
verbose_name="Approximate total investment",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contractor_or_supplier_of_technology',
|
||||
field=models.CharField(blank=None, default=None, help_text='List companies that act as contractors or suppliers of technology related to energy storage.', max_length=256, null=True, verbose_name='Contractor and/or supplier of technology'),
|
||||
model_name="casestudy",
|
||||
name="contractor_or_supplier_of_technology",
|
||||
field=models.CharField(
|
||||
blank=None,
|
||||
default=None,
|
||||
help_text="List companies that act as contractors or suppliers of technology related to energy storage.",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Contractor and/or supplier of technology",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,76 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0023_auto_20171102_2232'),
|
||||
]
|
||||
dependencies = [("map", "0023_auto_20171102_2232")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='additional_technical_details',
|
||||
field=models.CharField(blank=True, default=None, help_text='Add any additional details such as: length, from-to, voltage, substations etc', max_length=512, null=True, verbose_name='Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="additional_technical_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any additional details such as: length, from-to, voltage, substations etc",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Additional technical or economic details",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='minerals_or_commodities',
|
||||
field=models.CharField(blank=True, choices=[('ALU', 'Aluminium (Bauxite)'), ('ARS', 'Arsenic'), ('BER', 'Beryllium'), ('CAD', 'Cadmium'), ('CHR', 'Chromium'), ('COK', 'Coking'), ('COA', 'Coal (for steel)'), ('COP', 'Copper'), ('GAL', 'Gallium'), ('GER', 'Germanium'), ('GLD', 'Gold'), ('HRE', 'Heavy Rare Earth Elements (Gadolinium, Terbium, Dysprosium, Holmium, Erbium, Thulium, Ytterbium, Lutetium, Yttrium, Scandium)'), ('IRN', 'Iron'), ('LRE', 'Light Rare Earth Elements (Lanthanum, Cerium, Praseodymium, Neodymium, Promethium, Samarium, Europium)'), ('LED', 'Lead'), ('LIT', 'Lithium'), ('MAN', 'Manganese'), ('MER', 'Mercury'), ('MOL', 'Molybdenum'), ('NIC', 'Nickel'), ('NIO', 'Niobium'), ('PGM', 'Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)'), ('RHE', 'Rhenium'), ('SIL', 'Silicon'), ('SIV', 'Silver'), ('TAN', 'Tantalum'), ('TEL', 'Tellurium'), ('THA', 'Thallium'), ('TIN', 'Tin'), ('TIT', 'Titanium'), ('TUN', 'Tungsten'), ('VAN', 'Vanadium'), ('ZNC', 'Zinc'), ('OTR', 'Other')], default=None, help_text='Select the mineral commodity that is primarily mined in this project', max_length=3, null=True, verbose_name='Mineral commodity/commodities'),
|
||||
model_name="casestudy",
|
||||
name="minerals_or_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("ALU", "Aluminium (Bauxite)"),
|
||||
("ARS", "Arsenic"),
|
||||
("BER", "Beryllium"),
|
||||
("CAD", "Cadmium"),
|
||||
("CHR", "Chromium"),
|
||||
("COK", "Coking"),
|
||||
("COA", "Coal (for steel)"),
|
||||
("COP", "Copper"),
|
||||
("GAL", "Gallium"),
|
||||
("GER", "Germanium"),
|
||||
("GLD", "Gold"),
|
||||
(
|
||||
"HRE",
|
||||
"Heavy Rare Earth Elements (Gadolinium, Terbium, Dysprosium, Holmium, Erbium, Thulium, Ytterbium, Lutetium, Yttrium, Scandium)",
|
||||
),
|
||||
("IRN", "Iron"),
|
||||
(
|
||||
"LRE",
|
||||
"Light Rare Earth Elements (Lanthanum, Cerium, Praseodymium, Neodymium, Promethium, Samarium, Europium)",
|
||||
),
|
||||
("LED", "Lead"),
|
||||
("LIT", "Lithium"),
|
||||
("MAN", "Manganese"),
|
||||
("MER", "Mercury"),
|
||||
("MOL", "Molybdenum"),
|
||||
("NIC", "Nickel"),
|
||||
("NIO", "Niobium"),
|
||||
(
|
||||
"PGM",
|
||||
"Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)",
|
||||
),
|
||||
("RHE", "Rhenium"),
|
||||
("SIL", "Silicon"),
|
||||
("SIV", "Silver"),
|
||||
("TAN", "Tantalum"),
|
||||
("TEL", "Tellurium"),
|
||||
("THA", "Thallium"),
|
||||
("TIN", "Tin"),
|
||||
("TIT", "Titanium"),
|
||||
("TUN", "Tungsten"),
|
||||
("VAN", "Vanadium"),
|
||||
("ZNC", "Zinc"),
|
||||
("OTR", "Other"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the mineral commodity that is primarily mined in this project",
|
||||
max_length=3,
|
||||
null=True,
|
||||
verbose_name="Mineral commodity/commodities",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,24 +7,51 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0024_auto_20171102_2250'),
|
||||
]
|
||||
dependencies = [("map", "0024_auto_20171102_2250")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='minerals_or_commodities_other',
|
||||
field=models.CharField(blank=True, default=None, help_text="Enter the mineral commodity that isn't in the list.", max_length=64, null=True, verbose_name='Other mineral commodity'),
|
||||
model_name="casestudy",
|
||||
name="minerals_or_commodities_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the mineral commodity that isn't in the list.",
|
||||
max_length=64,
|
||||
null=True,
|
||||
verbose_name="Other mineral commodity",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy',
|
||||
field=models.CharField(blank=True, choices=[('WTM', 'Wind turbine manufacturing'), ('SPM', 'Solar panel manufacturing'), ('STM', 'Solar thermal system manufacturing'), ('HGM', 'Hydropower generator manufacturing'), ('GGM', 'Geothermal generator manufacturing'), ('ESS', 'Energy storage (inc. battery systems)'), ('OTR', 'Others')], default=None, help_text='Select the potential use of the minerals in the renewable energy economy', max_length=3, null=True, verbose_name='Potential user in renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("WTM", "Wind turbine manufacturing"),
|
||||
("SPM", "Solar panel manufacturing"),
|
||||
("STM", "Solar thermal system manufacturing"),
|
||||
("HGM", "Hydropower generator manufacturing"),
|
||||
("GGM", "Geothermal generator manufacturing"),
|
||||
("ESS", "Energy storage (inc. battery systems)"),
|
||||
("OTR", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the potential use of the minerals in the renewable energy economy",
|
||||
max_length=3,
|
||||
null=True,
|
||||
verbose_name="Potential user in renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy_other',
|
||||
field=models.CharField(blank=True, default=None, max_length=128, null=True, verbose_name='Other use in energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=128,
|
||||
null=True,
|
||||
verbose_name="Other use in energy economy",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,39 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0025_auto_20171102_2300'),
|
||||
]
|
||||
dependencies = [("map", "0025_auto_20171102_2300")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='positive_case_type',
|
||||
field=models.CharField(blank=True, choices=[('CREP', 'Community renewable energy project'), ('EACP', 'Energy as a commons project'), ('PSEP', 'Public/state (federal, state, municipal) energy project'), ('CORS', 'A case of responsible sourcing/supply chain/lifecycle management')], default=None, help_text='Select the most relevant type of positive case', max_length=4, null=True, verbose_name='What kind of positive case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="positive_case_type",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("CREP", "Community renewable energy project"),
|
||||
("EACP", "Energy as a commons project"),
|
||||
("PSEP", "Public/state (federal, state, municipal) energy project"),
|
||||
(
|
||||
"CORS",
|
||||
"A case of responsible sourcing/supply chain/lifecycle management",
|
||||
),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of positive case",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="What kind of positive case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='socioeconomic_benefits',
|
||||
field=models.TextField(blank=True, default=None, help_text='Please expand on your response given in the full description on page one. We would expect benefits to go beyond emissions savings, paying rent for land, or complying with environmental or social legislation', null=True, verbose_name='Socio-economic benefits'),
|
||||
model_name="casestudy",
|
||||
name="socioeconomic_benefits",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Please expand on your response given in the full description on page one. We would expect benefits to go beyond emissions savings, paying rent for land, or complying with environmental or social legislation",
|
||||
null=True,
|
||||
verbose_name="Socio-economic benefits",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,29 +7,53 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0026_auto_20171102_2326'),
|
||||
]
|
||||
dependencies = [("map", "0026_auto_20171102_2326")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='identified_partnerships',
|
||||
field=models.CharField(blank=True, default=None, help_text='Are you looking for partnerships or have any clearly identified need? If so, please describe it here.', max_length=256, null=True, verbose_name='Identified partnerships'),
|
||||
model_name="casestudy",
|
||||
name="identified_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Are you looking for partnerships or have any clearly identified need? If so, please describe it here.",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Identified partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='key_actors_involved',
|
||||
field=models.CharField(blank=True, default=None, max_length=256, null=True, verbose_name='Key actors involved (individual/organisational)'),
|
||||
model_name="casestudy",
|
||||
name="key_actors_involved",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Key actors involved (individual/organisational)",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='obstacles_and_hindrances',
|
||||
field=models.CharField(blank=True, default=None, help_text='List any obstacles or hindrances experienced in the course of the project', max_length=512, null=True, verbose_name='Obstacles and hindrances'),
|
||||
model_name="casestudy",
|
||||
name="obstacles_and_hindrances",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any obstacles or hindrances experienced in the course of the project",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Obstacles and hindrances",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='project_status_detail',
|
||||
field=models.TextField(blank=True, default=None, help_text="Describe the current status of the project, expanding beyond 'existing', 'under construction' etc", null=True, verbose_name='Current status of the project'),
|
||||
model_name="casestudy",
|
||||
name="project_status_detail",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Describe the current status of the project, expanding beyond 'existing', 'under construction' etc",
|
||||
null=True,
|
||||
verbose_name="Current status of the project",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,21 +7,27 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0027_auto_20171102_2346'),
|
||||
]
|
||||
dependencies = [("map", "0027_auto_20171102_2346")]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Shapefile',
|
||||
name="Shapefile",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('file', models.FileField(upload_to='shapefiles/')),
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("file", models.FileField(upload_to="shapefiles/")),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
field=models.ManyToManyField(to='map.Shapefile'),
|
||||
model_name="casestudy",
|
||||
name="shapefiles",
|
||||
field=models.ManyToManyField(to="map.Shapefile"),
|
||||
),
|
||||
]
|
||||
|
@ -8,14 +8,42 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0028_auto_20171102_2358'),
|
||||
]
|
||||
dependencies = [("map", "0028_auto_20171102_2358")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime etc'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest etc'), ('OTHR', 'Other reasons')], default=None, max_length=39, null=True),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime etc",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest etc",
|
||||
),
|
||||
("OTHR", "Other reasons"),
|
||||
],
|
||||
default=None,
|
||||
max_length=39,
|
||||
null=True,
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,19 +7,24 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0029_casestudy_negative_case_reasons'),
|
||||
]
|
||||
dependencies = [("map", "0029_casestudy_negative_case_reasons")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='wants_conversation_with_ojuso',
|
||||
field=models.NullBooleanField(default=None, help_text='This would be a conversation about challenging or engaging related developers, companies and investors.', verbose_name='Would you like to have a conversation with the ojuso team?'),
|
||||
model_name="casestudy",
|
||||
name="wants_conversation_with_ojuso",
|
||||
field=models.NullBooleanField(
|
||||
default=None,
|
||||
help_text="This would be a conversation about challenging or engaging related developers, companies and investors.",
|
||||
verbose_name="Would you like to have a conversation with the ojuso team?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='describe_ecosystem',
|
||||
field=models.TextField(help_text='In your own words, add more detail about the ecosystem.', verbose_name='Describe the ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="describe_ecosystem",
|
||||
field=models.TextField(
|
||||
help_text="In your own words, add more detail about the ecosystem.",
|
||||
verbose_name="Describe the ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,15 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0030_auto_20171103_1608'),
|
||||
]
|
||||
dependencies = [("map", "0030_auto_20171103_1608")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='synopsis',
|
||||
field=models.TextField(help_text='Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', verbose_name='Synopsis'),
|
||||
model_name="casestudy",
|
||||
name="synopsis",
|
||||
field=models.TextField(
|
||||
help_text="Briefly describe the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)",
|
||||
verbose_name="Synopsis",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,14 +7,39 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0031_auto_20171103_1610'),
|
||||
]
|
||||
dependencies = [("map", "0031_auto_20171103_1610")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=models.CharField(blank=True, choices=[('Water Based', (('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'))), ('Land Based', (('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')))], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6, null=True, verbose_name='Type of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Water Based",
|
||||
(
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Land Based",
|
||||
(
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
),
|
||||
),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of ecosystem.",
|
||||
max_length=6,
|
||||
null=True,
|
||||
verbose_name="Type of ecosystem",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,44 +7,88 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0032_auto_20171103_1745'),
|
||||
]
|
||||
dependencies = [("map", "0032_auto_20171103_1745")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='isolated_or_widespread_description',
|
||||
field=models.TextField(blank=True, default=None, help_text='Is this an isolated project or are there similar projects in the same geographic area? If there are more, can you describe them? Are there any significant cumulative synergistic effects?', null=True, verbose_name='Describe if the project is isolated or commonplace.'),
|
||||
model_name="casestudy",
|
||||
name="isolated_or_widespread_description",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Is this an isolated project or are there similar projects in the same geographic area? If there are more, can you describe them? Are there any significant cumulative synergistic effects?",
|
||||
null=True,
|
||||
verbose_name="Describe if the project is isolated or commonplace.",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='Please include other reasons, noting that we aim to focus on projects with substantive negative impacts on vulnerable groups.', max_length=512, null=True, verbose_name='Other reason for negative case'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Please include other reasons, noting that we aim to focus on projects with substantive negative impacts on vulnerable groups.",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Other reason for negative case",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='negative_socioenvironmental_impacts',
|
||||
field=models.TextField(blank=True, default=None, help_text='Provide a detailed description of the negative socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, , specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.', null=True, verbose_name='Describe the negative socio-environmental impacts'),
|
||||
model_name="casestudy",
|
||||
name="negative_socioenvironmental_impacts",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Provide a detailed description of the negative socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, , specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.",
|
||||
null=True,
|
||||
verbose_name="Describe the negative socio-environmental impacts",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='participation_mechanisms',
|
||||
field=models.CharField(blank=True, default=None, help_text='e.g. direct action, local referendums, legal cases, letters or petitions etc', max_length=512, null=True, verbose_name='What mechanisms of participation have been used?'),
|
||||
model_name="casestudy",
|
||||
name="participation_mechanisms",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="e.g. direct action, local referendums, legal cases, letters or petitions etc",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="What mechanisms of participation have been used?",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='potential_partnerships',
|
||||
field=models.CharField(blank=True, default=None, help_text='Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.', max_length=512, null=True, verbose_name='Describe potential partnerships'),
|
||||
model_name="casestudy",
|
||||
name="potential_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Describe potential partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='when_did_organising_start',
|
||||
field=models.CharField(blank=True, default=None, help_text='Before the project started? During project implementation? After project implementation? Describe in your own words.', max_length=512, null=True, verbose_name='When did local organising efforts begin?'),
|
||||
model_name="casestudy",
|
||||
name="when_did_organising_start",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Before the project started? During project implementation? After project implementation? Describe in your own words.",
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="When did local organising efforts begin?",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='who_has_been_involved',
|
||||
field=models.CharField(blank=True, default=None, max_length=512, null=True, verbose_name='Which communities, groups and organisations have been involved?'),
|
||||
model_name="casestudy",
|
||||
name="who_has_been_involved",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=512,
|
||||
null=True,
|
||||
verbose_name="Which communities, groups and organisations have been involved?",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,23 +7,25 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0033_auto_20171103_2230'),
|
||||
]
|
||||
dependencies = [("map", "0033_auto_20171103_2230")]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='casestudy',
|
||||
old_name='isolated_or_widespread_description',
|
||||
new_name='isolated_or_widespread',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
model_name="casestudy",
|
||||
old_name="isolated_or_widespread_description",
|
||||
new_name="isolated_or_widespread",
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="shapefiles"),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
field=models.FileField(blank=True, default=None, help_text='If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx', null=True, upload_to='', verbose_name='Shapefiles'),
|
||||
model_name="casestudy",
|
||||
name="shapefiles",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx",
|
||||
null=True,
|
||||
upload_to="",
|
||||
verbose_name="Shapefiles",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,30 +7,214 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0034_auto_20171103_2254'),
|
||||
]
|
||||
dependencies = [("map", "0034_auto_20171103_2254")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='completion_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1978, 1978), (1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058)], default=None, help_text="Select the year the project was completed. If the project hasn't finished, select the projected completion year.", null=True, verbose_name='Completion year'),
|
||||
model_name="casestudy",
|
||||
name="completion_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1978, 1978),
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project was completed. If the project hasn't finished, select the projected completion year.",
|
||||
null=True,
|
||||
verbose_name="Completion year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms',
|
||||
field=models.BooleanField(default=False, help_text='Tick the box if you would like us to show this case study on other social media platforms', verbose_name='Show on other platforms?'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms",
|
||||
field=models.BooleanField(
|
||||
default=False,
|
||||
help_text="Tick the box if you would like us to show this case study on other social media platforms",
|
||||
verbose_name="Show on other platforms?",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='start_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1978, 1978), (1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058)], default=None, help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.", null=True, verbose_name='Start year'),
|
||||
model_name="casestudy",
|
||||
name="start_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1978, 1978),
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.",
|
||||
null=True,
|
||||
verbose_name="Start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='wants_conversation_with_ojuso',
|
||||
field=models.BooleanField(default=True, help_text='This would be a conversation about challenging or engaging related developers, companies and investors.', verbose_name='Would you like to have a conversation with the ojuso team?'),
|
||||
model_name="casestudy",
|
||||
name="wants_conversation_with_ojuso",
|
||||
field=models.BooleanField(
|
||||
default=True,
|
||||
help_text="This would be a conversation about challenging or engaging related developers, companies and investors.",
|
||||
verbose_name="Would you like to have a conversation with the ojuso team?",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,18 +7,15 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0035_auto_20180326_0157'),
|
||||
]
|
||||
dependencies = [("map", "0035_auto_20180326_0157")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='casestudy',
|
||||
options={'verbose_name_plural': 'case studies'},
|
||||
name="casestudy", options={"verbose_name_plural": "case studies"}
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='approved',
|
||||
model_name="casestudy",
|
||||
name="approved",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
|
@ -7,24 +7,43 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0036_auto_20180327_0334'),
|
||||
]
|
||||
dependencies = [("map", "0036_auto_20180327_0334")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='direct_comms',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any reports of direct communication between community members and representatives of developers/companies/investors.', max_length=500, null=True, verbose_name='Reports of direct communications'),
|
||||
model_name="casestudy",
|
||||
name="direct_comms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors.",
|
||||
max_length=500,
|
||||
null=True,
|
||||
verbose_name="Reports of direct communications",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='projected_production_of_commodities',
|
||||
field=models.CharField(blank=True, default=None, help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'", max_length=256, null=True, verbose_name='Projected production of key commodities'),
|
||||
model_name="casestudy",
|
||||
name="projected_production_of_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Projected production of key commodities",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='size_of_concessions',
|
||||
field=models.CharField(blank=True, default=None, help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')", max_length=200, null=True, verbose_name='Size of concessions'),
|
||||
model_name="casestudy",
|
||||
name="size_of_concessions",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Size of concessions",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,21 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0037_auto_20180327_0549'),
|
||||
]
|
||||
dependencies = [("map", "0037_auto_20180327_0549")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable Energy Generation'), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable Energy Generation"),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,19 +7,45 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0038_auto_20180328_0146'),
|
||||
]
|
||||
dependencies = [("map", "0038_auto_20180328_0146")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction',
|
||||
field=models.CharField(blank=True, choices=[('SUR', 'Surface (open pit/open cast/open cut mining'), ('SUB', 'Sub-surface (underground mining)'), ('SEA', 'Seabed mining'), ('URB', 'Urban mining/recycling')], default=None, max_length=3, null=True, verbose_name='Type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SUR", "Surface (open pit/open cast/open cut mining"),
|
||||
("SUB", "Sub-surface (underground mining)"),
|
||||
("SEA", "Seabed mining"),
|
||||
("URB", "Urban mining/recycling"),
|
||||
],
|
||||
default=None,
|
||||
max_length=3,
|
||||
null=True,
|
||||
verbose_name="Type of extraction",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy',
|
||||
field=models.CharField(blank=True, choices=[('WTM', 'Wind turbine manufacturing'), ('SPM', 'Solar panel manufacturing'), ('STM', 'Solar thermal system manufacturing'), ('HGM', 'Hydropower generator manufacturing'), ('GGM', 'Geothermal generator manufacturing'), ('ESS', 'Energy storage (inc. battery systems)'), ('OTR', 'Others')], default=None, help_text='Select the potential use of the minerals in the renewable energy economy', max_length=3, null=True, verbose_name='Potential use in renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("WTM", "Wind turbine manufacturing"),
|
||||
("SPM", "Solar panel manufacturing"),
|
||||
("STM", "Solar thermal system manufacturing"),
|
||||
("HGM", "Hydropower generator manufacturing"),
|
||||
("GGM", "Geothermal generator manufacturing"),
|
||||
("ESS", "Energy storage (inc. battery systems)"),
|
||||
("OTR", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the potential use of the minerals in the renewable energy economy",
|
||||
max_length=3,
|
||||
null=True,
|
||||
verbose_name="Potential use in renewable energy economy",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,24 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0039_auto_20180328_0245'),
|
||||
]
|
||||
dependencies = [("map", "0039_auto_20180328_0245")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction',
|
||||
field=models.CharField(blank=True, choices=[('SUR', 'Surface (open pit/open cast/open cut mining)'), ('SUB', 'Sub-surface (underground mining)'), ('SEA', 'Seabed mining'), ('URB', 'Urban mining/recycling')], default=None, max_length=3, null=True, verbose_name='Type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SUR", "Surface (open pit/open cast/open cut mining)"),
|
||||
("SUB", "Sub-surface (underground mining)"),
|
||||
("SEA", "Seabed mining"),
|
||||
("URB", "Urban mining/recycling"),
|
||||
],
|
||||
default=None,
|
||||
max_length=3,
|
||||
null=True,
|
||||
verbose_name="Type of extraction",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -8,14 +8,43 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0040_auto_20180328_0309'),
|
||||
]
|
||||
dependencies = [("map", "0040_auto_20180328_0309")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime etc'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest etc'), ('OTHR', 'Other reasons')], default=None, max_length=39, null=True, verbose_name='Reasons this is a negative case study'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime etc",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest etc",
|
||||
),
|
||||
("OTHR", "Other reasons"),
|
||||
],
|
||||
default=None,
|
||||
max_length=39,
|
||||
null=True,
|
||||
verbose_name="Reasons this is a negative case study",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -7,14 +7,16 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0041_auto_20180328_0616'),
|
||||
]
|
||||
dependencies = [("map", "0041_auto_20180328_0616")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms',
|
||||
field=models.BooleanField(default=True, help_text='Tick the box if you would like us to show this case study on other social media platforms', verbose_name='Show on other platforms?'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms",
|
||||
field=models.BooleanField(
|
||||
default=True,
|
||||
help_text="Tick the box if you would like us to show this case study on other social media platforms",
|
||||
verbose_name="Show on other platforms?",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -9,79 +9,179 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0042_auto_20180328_1122'),
|
||||
]
|
||||
dependencies = [("map", "0042_auto_20180328_1122")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='direct_comms',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any reports of direct communication between community members and representatives of developers/companies/investors.', null=True, verbose_name='Reports of direct communications'),
|
||||
model_name="casestudy",
|
||||
name="direct_comms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors.",
|
||||
null=True,
|
||||
verbose_name="Reports of direct communications",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='discharge_time',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, default=None, help_text='Enter the time it takes to discharge from full capacity at maximum power output (in hours).', max_digits=6, null=True, verbose_name='Time for discharge from full capacity'),
|
||||
model_name="casestudy",
|
||||
name="discharge_time",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
help_text="Enter the time it takes to discharge from full capacity at maximum power output (in hours).",
|
||||
max_digits=6,
|
||||
null=True,
|
||||
verbose_name="Time for discharge from full capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_storage_capacity',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, default=None, help_text='Enter the total capacity of the energy storage system in kilowatt-hours (kWh).', max_digits=20, null=True, verbose_name='Energy storage capacity'),
|
||||
model_name="casestudy",
|
||||
name="energy_storage_capacity",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
help_text="Enter the total capacity of the energy storage system in kilowatt-hours (kWh).",
|
||||
max_digits=20,
|
||||
null=True,
|
||||
verbose_name="Energy storage capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='image_caption',
|
||||
field=models.CharField(default=None, max_length=240, null=True, verbose_name='Image caption'),
|
||||
model_name="casestudy",
|
||||
name="image_caption",
|
||||
field=models.CharField(
|
||||
default=None, max_length=240, null=True, verbose_name="Image caption"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='image_credit',
|
||||
field=models.CharField(default=None, max_length=240, null=True, verbose_name='Image credit(s)'),
|
||||
model_name="casestudy",
|
||||
name="image_credit",
|
||||
field=models.CharField(
|
||||
default=None, max_length=240, null=True, verbose_name="Image credit(s)"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location_context',
|
||||
field=models.CharField(choices=[('RUR', 'Rural'), ('URB', 'Urban'), ('MIX', 'Mixed')], help_text='Select the context that is most applicable to this case study.', max_length=3, verbose_name='Location'),
|
||||
model_name="casestudy",
|
||||
name="location_context",
|
||||
field=models.CharField(
|
||||
choices=[("RUR", "Rural"), ("URB", "Urban"), ("MIX", "Mixed")],
|
||||
help_text="Select the context that is most applicable to this case study.",
|
||||
max_length=3,
|
||||
verbose_name="Location",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='maximum_power_output',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, default=None, help_text='Enter the maximum power output of the storage system in kilowatts (kW).', max_digits=12, null=True, verbose_name='Maximum power output'),
|
||||
model_name="casestudy",
|
||||
name="maximum_power_output",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
default=None,
|
||||
help_text="Enter the maximum power output of the storage system in kilowatts (kW).",
|
||||
max_digits=12,
|
||||
null=True,
|
||||
verbose_name="Maximum power output",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_independent',
|
||||
field=models.TextField(default=None, help_text='Provide any links to grassroots/independent media coverage.', null=True, verbose_name='Independent grassroots reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_independent",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Provide any links to grassroots/independent media coverage.",
|
||||
null=True,
|
||||
verbose_name="Independent grassroots reports",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_mainstream',
|
||||
field=models.TextField(default=None, help_text='Provide any links to mainstream media coverage.', null=True, verbose_name='Links to media reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_mainstream",
|
||||
field=models.TextField(
|
||||
default=None,
|
||||
help_text="Provide any links to mainstream media coverage.",
|
||||
null=True,
|
||||
verbose_name="Links to media reports",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('Water Based', (('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'))), ('Land Based', (('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')))], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6, null=True, verbose_name='Type of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Water Based",
|
||||
(
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Land Based",
|
||||
(
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
),
|
||||
),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of ecosystem.",
|
||||
max_length=6,
|
||||
null=True,
|
||||
verbose_name="Type of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video',
|
||||
field=models.URLField(blank=True, default=None, help_text='Copy the URL to a related YouTube™ video that relates to the case study.', max_length=43, null=True, validators=[apps.map.validators.YoutubeURLValidator()], verbose_name='YouTube Video'),
|
||||
model_name="casestudy",
|
||||
name="video",
|
||||
field=models.URLField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Copy the URL to a related YouTube™ video that relates to the case study.",
|
||||
max_length=43,
|
||||
null=True,
|
||||
validators=[apps.map.validators.YoutubeURLValidator()],
|
||||
verbose_name="YouTube Video",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video_caption',
|
||||
field=models.CharField(blank=True, default=None, max_length=240, null=True, verbose_name='Video caption'),
|
||||
model_name="casestudy",
|
||||
name="video_caption",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Video caption",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video_credit',
|
||||
field=models.CharField(blank=True, default=None, max_length=240, null=True, verbose_name='Video credit(s)'),
|
||||
model_name="casestudy",
|
||||
name="video_credit",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
max_length=240,
|
||||
null=True,
|
||||
verbose_name="Video credit(s)",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,39 +8,43 @@ import phonenumber_field.modelfields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0043_auto_20180329_1044'),
|
||||
]
|
||||
dependencies = [("map", "0043_auto_20180329_1044")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_email',
|
||||
field=models.EmailField(blank=True, max_length=254, verbose_name='Email address'),
|
||||
model_name="casestudy",
|
||||
name="contact_email",
|
||||
field=models.EmailField(
|
||||
blank=True, max_length=254, verbose_name="Email address"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_facebook',
|
||||
field=models.URLField(blank=True, verbose_name='Facebook page'),
|
||||
model_name="casestudy",
|
||||
name="contact_facebook",
|
||||
field=models.URLField(blank=True, verbose_name="Facebook page"),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_other',
|
||||
field=models.TextField(blank=True, verbose_name='Other contact details'),
|
||||
model_name="casestudy",
|
||||
name="contact_other",
|
||||
field=models.TextField(blank=True, verbose_name="Other contact details"),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_phone',
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(blank=True, max_length=128, verbose_name='Phone number'),
|
||||
model_name="casestudy",
|
||||
name="contact_phone",
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(
|
||||
blank=True, max_length=128, verbose_name="Phone number"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_twitter',
|
||||
field=models.CharField(blank=True, max_length=50, verbose_name='Twitter username'),
|
||||
model_name="casestudy",
|
||||
name="contact_twitter",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=50, verbose_name="Twitter username"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='contact_website',
|
||||
field=models.URLField(blank=True, verbose_name='Website'),
|
||||
model_name="casestudy",
|
||||
name="contact_website",
|
||||
field=models.URLField(blank=True, verbose_name="Website"),
|
||||
),
|
||||
]
|
||||
|
@ -8,25 +8,36 @@ import phonenumber_field.modelfields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0044_auto_20180331'),
|
||||
]
|
||||
dependencies = [("map", "0044_auto_20180331")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='contact_phone',
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(blank=True, help_text='Please include the international prefix, beginning with "+".', max_length=128, verbose_name='Phone number'),
|
||||
model_name="casestudy",
|
||||
name="contact_phone",
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(
|
||||
blank=True,
|
||||
help_text='Please include the international prefix, beginning with "+".',
|
||||
max_length=128,
|
||||
verbose_name="Phone number",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms',
|
||||
field=models.BooleanField(default=True, verbose_name='Is this case study shown on other platforms?'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms",
|
||||
field=models.BooleanField(
|
||||
default=True,
|
||||
verbose_name="Is this case study shown on other platforms?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shown_on_other_platforms_detail',
|
||||
field=models.TextField(blank=True, default='', help_text='Please provide links to other places the case study appears.', verbose_name='Shown on other platforms - Detail'),
|
||||
model_name="casestudy",
|
||||
name="shown_on_other_platforms_detail",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="Please provide links to other places the case study appears.",
|
||||
verbose_name="Shown on other platforms - Detail",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
|
@ -8,15 +8,20 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0045_auto_20180331_0517'),
|
||||
]
|
||||
dependencies = [("map", "0045_auto_20180331_0517")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video',
|
||||
field=models.URLField(blank=True, default='', help_text='Copy the URL to a YouTube or Vimeo video that relates to the case study.', max_length=80, validators=[apps.map.validators.YouTubeOrVimeoValidator()], verbose_name='Video URL'),
|
||||
preserve_default=False,
|
||||
model_name="casestudy",
|
||||
name="video",
|
||||
field=models.URLField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="Copy the URL to a YouTube or Vimeo video that relates to the case study.",
|
||||
max_length=80,
|
||||
validators=[apps.map.validators.YouTubeOrVimeoValidator()],
|
||||
verbose_name="Video URL",
|
||||
),
|
||||
preserve_default=False,
|
||||
)
|
||||
]
|
||||
|
@ -8,19 +8,51 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0046_auto_20180331_0604'),
|
||||
]
|
||||
dependencies = [("map", "0046_auto_20180331_0604")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type of ecosystem.', max_length=6, null=True, verbose_name='Type of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type of ecosystem.",
|
||||
max_length=6,
|
||||
null=True,
|
||||
verbose_name="Type of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=6, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=6,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,20 +8,71 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0047_auto_20180331_0607'),
|
||||
]
|
||||
dependencies = [("map", "0047_auto_20180331_0607")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='financial_institutions_other',
|
||||
field=models.TextField(blank=True, help_text='List any other financial institutions not listed above. Put each on a new line.', verbose_name='Financial institutions – other'),
|
||||
model_name="casestudy",
|
||||
name="financial_institutions_other",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List any other financial institutions not listed above. Put each on a new line.",
|
||||
verbose_name="Financial institutions – other",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='financial_institutions',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('AfDB', 'African Development Bank (AfDB)'), ('BADEA', 'Arab Bank for Economic Development in Africa (BADEA)'), ('ADB', 'Asian Development Bank (ADB)'), ('AIIB', 'Asian Infrastructure Investment Bank (AIIB)'), ('BSTDB', 'Black Sea Trade and Development Bank (BSTDB)'), ('CAF', 'Corporacion Andina de Fomento / Development Bank of Latin America (CAF)'), ('CDB', 'Caribbean Development Bank (CDB)'), ('CABEI', 'Central American Bank for Economic Integration (CABEI)'), ('EADB', 'East African Development Bank (EADB)'), ('ETDB', 'Economic Cooperation Organization Trade and Development Bank (ETDB)'), ('EDB', 'Eurasian Development Bank (EDB)'), ('EBRD', 'European Bank for Reconstruction and Development (EBRD)'), ('EC', 'European Commission (EC)'), ('EIB', 'European Investment Bank (EIB)'), ('IADB', 'Inter-American Development Bank Group (IDB, IADB)'), ('IFFIm', 'International Finance Facility for Immunisation (IFFIm)'), ('IFAD', 'International Fund for Agricultural Development (IFAD)'), ('IIB', 'International Investment Bank (IIB)'), ('IsDB', 'Islamic Development Bank (IsDB)'), ('FMO', 'Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (FMO)'), ('NDB', 'New Development Bank (NDB) (formerly BRICS Development Bank)'), ('NDF', 'The Nordic Development Fund'), ('NIB', 'Nordic Investment Bank (NIB)'), ('OFID', 'OPEC Fund for International Development (OFID)'), ('BOAD', 'West African Development Bank (BOAD)'), ('WB', 'World Bank')], default='', help_text='Select any financial institutions that have or are considering extending loans or guarantees to the project.', max_length=119, verbose_name='Financial institutions'),
|
||||
model_name="casestudy",
|
||||
name="financial_institutions",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("AfDB", "African Development Bank (AfDB)"),
|
||||
("BADEA", "Arab Bank for Economic Development in Africa (BADEA)"),
|
||||
("ADB", "Asian Development Bank (ADB)"),
|
||||
("AIIB", "Asian Infrastructure Investment Bank (AIIB)"),
|
||||
("BSTDB", "Black Sea Trade and Development Bank (BSTDB)"),
|
||||
(
|
||||
"CAF",
|
||||
"Corporacion Andina de Fomento / Development Bank of Latin America (CAF)",
|
||||
),
|
||||
("CDB", "Caribbean Development Bank (CDB)"),
|
||||
("CABEI", "Central American Bank for Economic Integration (CABEI)"),
|
||||
("EADB", "East African Development Bank (EADB)"),
|
||||
(
|
||||
"ETDB",
|
||||
"Economic Cooperation Organization Trade and Development Bank (ETDB)",
|
||||
),
|
||||
("EDB", "Eurasian Development Bank (EDB)"),
|
||||
("EBRD", "European Bank for Reconstruction and Development (EBRD)"),
|
||||
("EC", "European Commission (EC)"),
|
||||
("EIB", "European Investment Bank (EIB)"),
|
||||
("IADB", "Inter-American Development Bank Group (IDB, IADB)"),
|
||||
(
|
||||
"IFFIm",
|
||||
"International Finance Facility for Immunisation (IFFIm)",
|
||||
),
|
||||
("IFAD", "International Fund for Agricultural Development (IFAD)"),
|
||||
("IIB", "International Investment Bank (IIB)"),
|
||||
("IsDB", "Islamic Development Bank (IsDB)"),
|
||||
(
|
||||
"FMO",
|
||||
"Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (FMO)",
|
||||
),
|
||||
(
|
||||
"NDB",
|
||||
"New Development Bank (NDB) (formerly BRICS Development Bank)",
|
||||
),
|
||||
("NDF", "The Nordic Development Fund"),
|
||||
("NIB", "Nordic Investment Bank (NIB)"),
|
||||
("OFID", "OPEC Fund for International Development (OFID)"),
|
||||
("BOAD", "West African Development Bank (BOAD)"),
|
||||
("WB", "World Bank"),
|
||||
],
|
||||
default="",
|
||||
help_text="Select any financial institutions that have or are considering extending loans or guarantees to the project.",
|
||||
max_length=119,
|
||||
verbose_name="Financial institutions",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
|
@ -7,27 +7,29 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0048_auto_20180331_0933'),
|
||||
]
|
||||
dependencies = [("map", "0048_auto_20180331_0933")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="casestudy", name="affects_indigenous"),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='affects_indigenous_detail',
|
||||
model_name="casestudy", name="affects_indigenous_detail"
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='people_affected_indigenous',
|
||||
field=models.TextField(blank=True, help_text='What group or groups of indigenous people are affected by this project? Please separate by newline.', verbose_name='Indigenous people affected'),
|
||||
model_name="casestudy",
|
||||
name="people_affected_indigenous",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="What group or groups of indigenous people are affected by this project? Please separate by newline.",
|
||||
verbose_name="Indigenous people affected",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='people_affected_other',
|
||||
field=models.TextField(blank=True, help_text='What other group or groups of people are affected by this project? Please separate by newline.', verbose_name='Non-indigenous people affected'),
|
||||
model_name="casestudy",
|
||||
name="people_affected_other",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="What other group or groups of people are affected by this project? Please separate by newline.",
|
||||
verbose_name="Non-indigenous people affected",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,14 +8,29 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0049_auto_20180331_1134'),
|
||||
]
|
||||
dependencies = [("map", "0049_auto_20180331_1134")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -9,89 +9,246 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0050_auto_20180402_1237'),
|
||||
]
|
||||
dependencies = [("map", "0050_auto_20180402_1237")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='approximate_total_investment',
|
||||
field=models.PositiveIntegerField(blank=True, default=None, help_text='Enter the approximate total investment in USD ($).', null=True, verbose_name='Approximate total investment'),
|
||||
model_name="casestudy",
|
||||
name="approximate_total_investment",
|
||||
field=models.PositiveIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the approximate total investment in USD ($).",
|
||||
null=True,
|
||||
verbose_name="Approximate total investment",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='contractor_or_supplier_of_technology',
|
||||
field=models.CharField(blank=True, default=None, help_text='List companies that act as contractors or suppliers of technology related to energy storage.', max_length=256, null=True, verbose_name='Contractor and/or supplier of technology'),
|
||||
model_name="casestudy",
|
||||
name="contractor_or_supplier_of_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List companies that act as contractors or suppliers of technology related to energy storage.",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Contractor and/or supplier of technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.CharField(blank=True, default=None, help_text="List any wholesale customers that take energy from the development. E.g. 'national grids' or private energy suppliers.", max_length=120, null=True, verbose_name='Energy consumers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any wholesale customers that take energy from the development. E.g. 'national grids' or private energy suppliers.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Energy consumers",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of the project.', max_length=128, verbose_name='Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of the project.",
|
||||
max_length=128,
|
||||
verbose_name="Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500 kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500 kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g. using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc.)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500 kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500 kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g. using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc.)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc.)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private land'), ('PUB', 'Public land'), ('COM', 'Community land'), ('OTH', 'Other')], help_text='What type of ownership/tenure does the land fall under?', max_length=3, verbose_name='Land ownership/tenure'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private land"),
|
||||
("PUB", "Public land"),
|
||||
("COM", "Community land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership/tenure does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership/tenure",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership/tenure details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership/tenure details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location',
|
||||
field=django.contrib.gis.db.models.fields.PointField(help_text='Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important).', srid=4326, verbose_name='Project location'),
|
||||
model_name="casestudy",
|
||||
name="location",
|
||||
field=django.contrib.gis.db.models.fields.PointField(
|
||||
help_text="Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important).",
|
||||
srid=4326,
|
||||
verbose_name="Project location",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (power lines, substations etc.)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc.)'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (power lines, substations etc.)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc.)",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing project'), ('UCONST', 'Under construction'), ('PROJCD', 'Planned project')], help_text='What is the current status of the project?', max_length=6, verbose_name='Status of project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing project"),
|
||||
("UCONST", "Under construction"),
|
||||
("PROJCD", "Planned project"),
|
||||
],
|
||||
help_text="What is the current status of the project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable energy generation'), ('PG', 'Power grids'), ('SM', 'Supply of minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of the renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable energy generation"),
|
||||
("PG", "Power grids"),
|
||||
("SM", "Supply of minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of the renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. freshwater, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. freshwater, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -10,84 +10,232 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0051_auto_20180404_2215'),
|
||||
]
|
||||
dependencies = [("map", "0051_auto_20180404_2215")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='country',
|
||||
field=django_countries.fields.CountryField(help_text='Select the country of the project', max_length=2, verbose_name='Country'),
|
||||
model_name="casestudy",
|
||||
name="country",
|
||||
field=django_countries.fields.CountryField(
|
||||
help_text="Select the country of the project",
|
||||
max_length=2,
|
||||
verbose_name="Country",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.CharField(blank=True, default=None, help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers.", max_length=120, null=True, verbose_name='Energy consumers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Energy consumers",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128, verbose_name='Entry Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of project.",
|
||||
max_length=128,
|
||||
verbose_name="Entry Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full Description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full Description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], help_text='What type of ownership does the land fall under?', max_length=3, verbose_name='Land ownership'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private Land"),
|
||||
("PUB", "Public Land"),
|
||||
("COM", "Community Land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location',
|
||||
field=django.contrib.gis.db.models.fields.PointField(help_text='Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important)', srid=4326, verbose_name='Project location'),
|
||||
model_name="casestudy",
|
||||
name="location",
|
||||
field=django.contrib.gis.db.models.fields.PointField(
|
||||
help_text="Place a marker using the tools on the left of the map. Zoom in as far as you can so the placement is accurate (important)",
|
||||
srid=4326,
|
||||
verbose_name="Project location",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (grid lines, substations etc)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (grid lines, substations etc)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], help_text='What is the status of the current project?', max_length=6, verbose_name='Status of Project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing Project"),
|
||||
("UCONST", "Under Construction"),
|
||||
("PROJCD", "Projected Project"),
|
||||
],
|
||||
help_text="What is the status of the current project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of Project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable Energy Generation'), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable Energy Generation"),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -11,16 +11,31 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('map', '0052_auto_20180412_0647'),
|
||||
("map", "0052_auto_20180412_0647"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CaseStudyDraft',
|
||||
name="CaseStudyDraft",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('data', models.TextField()),
|
||||
('author', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("data", models.TextField()),
|
||||
(
|
||||
"author",
|
||||
models.ForeignKey(
|
||||
editable=False,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
]
|
||||
|
@ -10,36 +10,42 @@ import django.db.models.deletion
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gis', '__first__'),
|
||||
('map', '0053_casestudydraft'),
|
||||
]
|
||||
dependencies = [("gis", "__first__"), ("map", "0053_casestudydraft")]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SpatialRefSys',
|
||||
fields=[
|
||||
],
|
||||
name="SpatialRefSys",
|
||||
fields=[],
|
||||
options={
|
||||
'verbose_name': 'spatial reference system',
|
||||
'proxy': True,
|
||||
'indexes': [],
|
||||
"verbose_name": "spatial reference system",
|
||||
"proxy": True,
|
||||
"indexes": [],
|
||||
},
|
||||
bases=('gis.postgisspatialrefsys',),
|
||||
bases=("gis.postgisspatialrefsys",),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='coordinate_reference_system',
|
||||
field=models.ForeignKey(blank=True, default=4326, null=True, on_delete=django.db.models.deletion.CASCADE, to='map.SpatialRefSys'),
|
||||
model_name="casestudy",
|
||||
name="coordinate_reference_system",
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
default=4326,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="map.SpatialRefSys",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='location',
|
||||
field=django.contrib.gis.db.models.fields.PointField(srid=4326, verbose_name='Project location'),
|
||||
model_name="casestudy",
|
||||
name="location",
|
||||
field=django.contrib.gis.db.models.fields.PointField(
|
||||
srid=4326, verbose_name="Project location"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudydraft',
|
||||
name='author',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||||
model_name="casestudydraft",
|
||||
name="author",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,74 +8,214 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0054_auto_20180416_0355'),
|
||||
]
|
||||
dependencies = [("map", "0054_auto_20180416_0355")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.CharField(blank=True, default=None, help_text="List any wholesale customers that take energy from the development. E.g. 'national grids' or private energy suppliers.", max_length=120, null=True, verbose_name='Energy consumers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="List any wholesale customers that take energy from the development. E.g. 'national grids' or private energy suppliers.",
|
||||
max_length=120,
|
||||
null=True,
|
||||
verbose_name="Energy consumers",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of the project.', max_length=128, verbose_name='Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of the project.",
|
||||
max_length=128,
|
||||
verbose_name="Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500 kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500 kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g. using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc.)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500 kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500 kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g. using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc.)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc.)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private land'), ('PUB', 'Public land'), ('COM', 'Community land'), ('OTH', 'Other')], help_text='What type of ownership/tenure does the land fall under?', max_length=3, verbose_name='Land ownership/tenure'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private land"),
|
||||
("PUB", "Public land"),
|
||||
("COM", "Community land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership/tenure does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership/tenure",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership/tenure details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership/tenure details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (power lines, substations etc.)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc.)'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (power lines, substations etc.)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc.)",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing project'), ('UCONST', 'Under construction'), ('PROJCD', 'Planned project')], help_text='What is the current status of the project?', max_length=6, verbose_name='Status of project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing project"),
|
||||
("UCONST", "Under construction"),
|
||||
("PROJCD", "Planned project"),
|
||||
],
|
||||
help_text="What is the current status of the project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable energy generation'), ('PG', 'Power grids'), ('SM', 'Supply of minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of the renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable energy generation"),
|
||||
("PG", "Power grids"),
|
||||
("SM", "Supply of minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of the renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. freshwater, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. freshwater, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,12 +7,6 @@ from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0055_auto_20180419_1650'),
|
||||
]
|
||||
dependencies = [("map", "0055_auto_20180419_1650")]
|
||||
|
||||
operations = [
|
||||
migrations.DeleteModel(
|
||||
name='Shapefile',
|
||||
),
|
||||
]
|
||||
operations = [migrations.DeleteModel(name="Shapefile")]
|
||||
|
@ -7,37 +7,48 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0001_initial'),
|
||||
('map', '0056_delete_shapefile'),
|
||||
]
|
||||
dependencies = [("files", "0001_initial"), ("map", "0056_delete_shapefile")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='official_project_documents',
|
||||
model_name="casestudy", name="official_project_documents"
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='official_project_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any legal or official documents that relate to the project.', null=True, related_name='official_project_document_for', to='files.File', verbose_name='Official project documents'),
|
||||
model_name="casestudy",
|
||||
name="official_project_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any legal or official documents that relate to the project.",
|
||||
null=True,
|
||||
related_name="official_project_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Official project documents",
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='other_documents',
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="other_documents"),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='other_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any other documents that relate to the project.', null=True, related_name='other_document_for', to='files.File', verbose_name='Other documents'),
|
||||
model_name="casestudy",
|
||||
name="other_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any other documents that relate to the project.",
|
||||
null=True,
|
||||
related_name="other_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Other documents",
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="shapefiles"),
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
field=models.ManyToManyField(blank=True, help_text='If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx', null=True, related_name='shapefile_for', to='files.File', verbose_name='Shapefiles'),
|
||||
model_name="casestudy",
|
||||
name="shapefiles",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx",
|
||||
null=True,
|
||||
related_name="shapefile_for",
|
||||
to="files.File",
|
||||
verbose_name="Shapefiles",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,24 +7,40 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0057_auto_20180423_0220'),
|
||||
]
|
||||
dependencies = [("map", "0057_auto_20180423_0220")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='official_project_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any legal or official documents that relate to the project.', related_name='official_project_document_for', to='files.File', verbose_name='Official project documents'),
|
||||
model_name="casestudy",
|
||||
name="official_project_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any legal or official documents that relate to the project.",
|
||||
related_name="official_project_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Official project documents",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='other_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any other documents that relate to the project.', related_name='other_document_for', to='files.File', verbose_name='Other documents'),
|
||||
model_name="casestudy",
|
||||
name="other_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any other documents that relate to the project.",
|
||||
related_name="other_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Other documents",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
field=models.ManyToManyField(blank=True, help_text='If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx', related_name='shapefile_for', to='files.File', verbose_name='Shapefiles'),
|
||||
model_name="casestudy",
|
||||
name="shapefiles",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="If you have territory that you would like to show in relation to this project - e.g. Bienes Comunales de Ixtepec etc. This is a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx",
|
||||
related_name="shapefile_for",
|
||||
to="files.File",
|
||||
verbose_name="Shapefiles",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -8,99 +8,257 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0058_auto_20180429_2205'),
|
||||
]
|
||||
dependencies = [("map", "0058_auto_20180429_2205")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.TextField(blank=True, default='', help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers. Please separate with a newline.", verbose_name='Energy consumers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="List any wholesale energy customers that take energy from the development. E.g. 'national grids' or private energy suppliers. Please separate with a newline.",
|
||||
verbose_name="Energy consumers",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128, verbose_name='Entry Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of project.",
|
||||
max_length=128,
|
||||
verbose_name="Entry Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full Description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full Description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], help_text='What type of ownership does the land fall under?', max_length=3, verbose_name='Land ownership'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private Land"),
|
||||
("PUB", "Public Land"),
|
||||
("COM", "Community Land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='participation_mechanisms',
|
||||
field=models.TextField(blank=True, default='', help_text='e.g. direct action, local referendums, legal cases, letters or petitions etc', verbose_name='What mechanisms of participation have been used?'),
|
||||
model_name="casestudy",
|
||||
name="participation_mechanisms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="e.g. direct action, local referendums, legal cases, letters or petitions etc",
|
||||
verbose_name="What mechanisms of participation have been used?",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (grid lines, substations etc)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (grid lines, substations etc)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_owners',
|
||||
field=models.TextField(blank=True, default='', help_text='List companies or organisations that own the project and/or facilities. Separate with a new line.', verbose_name='Project and facility owners'),
|
||||
model_name="casestudy",
|
||||
name="project_owners",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="List companies or organisations that own the project and/or facilities. Separate with a new line.",
|
||||
verbose_name="Project and facility owners",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], help_text='What is the status of the current project?', max_length=6, verbose_name='Status of Project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing Project"),
|
||||
("UCONST", "Under Construction"),
|
||||
("PROJCD", "Projected Project"),
|
||||
],
|
||||
help_text="What is the status of the current project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of Project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable Energy Generation'), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable Energy Generation"),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shareholders',
|
||||
field=models.TextField(blank=True, default='', help_text="List shareholders of the project owners you've just listed. Separate with a new line.", verbose_name='Shareholders of the project owners'),
|
||||
model_name="casestudy",
|
||||
name="shareholders",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="List shareholders of the project owners you've just listed. Separate with a new line.",
|
||||
verbose_name="Shareholders of the project owners",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='technical_or_economic_details',
|
||||
field=models.TextField(blank=True, default='', help_text='Specify any additional technical or economic details relating to the project.', verbose_name='Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="technical_or_economic_details",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default="",
|
||||
help_text="Specify any additional technical or economic details relating to the project.",
|
||||
verbose_name="Additional technical or economic details",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -6,18 +6,12 @@ from django.db import migrations
|
||||
|
||||
|
||||
def null_life_span(apps, schema_editor):
|
||||
CaseStudy = apps.get_model('map', 'CaseStudy')
|
||||
CaseStudy.objects.filter(project_life_span=None).update(
|
||||
project_life_span=''
|
||||
)
|
||||
CaseStudy = apps.get_model("map", "CaseStudy")
|
||||
CaseStudy.objects.filter(project_life_span=None).update(project_life_span="")
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0059_auto_20180519_1801'),
|
||||
]
|
||||
dependencies = [("map", "0059_auto_20180519_1801")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(null_life_span),
|
||||
]
|
||||
operations = [migrations.RunPython(null_life_span)]
|
||||
|
@ -7,14 +7,17 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0060_project_life_span_null'),
|
||||
]
|
||||
dependencies = [("map", "0060_project_life_span_null")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_life_span',
|
||||
field=models.CharField(blank=True, help_text='e.g. 12 years of production, 15 years overall', max_length=200, verbose_name='Project life span'),
|
||||
model_name="casestudy",
|
||||
name="project_life_span",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="e.g. 12 years of production, 15 years overall",
|
||||
max_length=200,
|
||||
verbose_name="Project life span",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -8,69 +8,202 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0061_auto_20180523_1659'),
|
||||
]
|
||||
dependencies = [("map", "0061_auto_20180523_1659")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)', max_length=200, null=True, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, default=None, help_text='Add any direct quotes from members of the community that relate to this project', null=True, verbose_name='Community voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
null=True,
|
||||
verbose_name="Community voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of the project.', max_length=128, verbose_name='Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of the project.",
|
||||
max_length=128,
|
||||
verbose_name="Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500 kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500 kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g. using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc.)')], default=None, help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, null=True, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500 kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500 kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g. using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc.)"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
null=True,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, default=None, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc.)', max_length=200, null=True, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc.)",
|
||||
max_length=200,
|
||||
null=True,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private land'), ('PUB', 'Public land'), ('COM', 'Community land'), ('OTH', 'Other')], help_text='What type of ownership/tenure does the land fall under?', max_length=3, verbose_name='Land ownership/tenure'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private land"),
|
||||
("PUB", "Public land"),
|
||||
("COM", "Community land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership/tenure does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership/tenure",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text="Please specify details about land ownership if you chose 'other'", max_length=256, null=True, verbose_name='Land ownership/tenure details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership if you chose 'other'",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership/tenure details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (power lines, substations etc.)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc.)'), ('OT', 'Others')], default=None, help_text='Select the related energy technology.', max_length=2, null=True, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (power lines, substations etc.)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc.)",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
null=True,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing project'), ('UCONST', 'Under construction'), ('PROJCD', 'Planned project')], help_text='What is the current status of the project?', max_length=6, verbose_name='Status of project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing project"),
|
||||
("UCONST", "Under construction"),
|
||||
("PROJCD", "Planned project"),
|
||||
],
|
||||
help_text="What is the current status of the project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable energy generation'), ('PG', 'Power grids'), ('SM', 'Supply of minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of the renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable energy generation"),
|
||||
("PG", "Power grids"),
|
||||
("SM", "Supply of minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of the renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. freshwater, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat soil)'), ('URBAN', 'Urban')], default=None, help_text='Select the most relevant type(s).', max_length=56, null=True, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. freshwater, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
null=True,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,19 +7,25 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0062_auto_20180525_0035'),
|
||||
]
|
||||
dependencies = [("map", "0062_auto_20180525_0035")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='key_actors_involved',
|
||||
field=models.TextField(blank=True, null=True, verbose_name='Key actors involved (individual/organisational)'),
|
||||
model_name="casestudy",
|
||||
name="key_actors_involved",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name="Key actors involved (individual/organisational)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='who_has_been_involved',
|
||||
field=models.TextField(blank=True, null=True, verbose_name='Which communities, groups and organisations have been involved?'),
|
||||
model_name="casestudy",
|
||||
name="who_has_been_involved",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name="Which communities, groups and organisations have been involved?",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -7,14 +7,18 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0063_auto_20180525_0052'),
|
||||
]
|
||||
dependencies = [("map", "0063_auto_20180525_0052")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text='Please specify details about land ownership', max_length=256, null=True, verbose_name='Land ownership/tenure details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership",
|
||||
max_length=256,
|
||||
null=True,
|
||||
verbose_name="Land ownership/tenure details",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -8,14 +8,19 @@ from django.db import migrations, models
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('files', '0003_auto_20180526_1547'),
|
||||
('map', '0064_auto_20180526_1536'),
|
||||
("files", "0003_auto_20180526_1547"),
|
||||
("map", "0064_auto_20180526_1536"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='images',
|
||||
field=models.ManyToManyField(blank=True, related_name='image_for', to='files.ImageFile', verbose_name='Images'),
|
||||
model_name="casestudy",
|
||||
name="images",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
related_name="image_for",
|
||||
to="files.ImageFile",
|
||||
verbose_name="Images",
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -6,20 +6,20 @@ from django.db import migrations
|
||||
|
||||
|
||||
def copy_images(apps, schema_editor):
|
||||
CaseStudy = apps.get_model('map', 'CaseStudy')
|
||||
ImageFile = apps.get_model('files', 'ImageFile')
|
||||
User = apps.get_model('auth', 'User')
|
||||
CaseStudy = apps.get_model("map", "CaseStudy")
|
||||
ImageFile = apps.get_model("files", "ImageFile")
|
||||
User = apps.get_model("auth", "User")
|
||||
|
||||
for case_study in CaseStudy.objects.all():
|
||||
author = case_study.author
|
||||
if author is None:
|
||||
author = User.objects.get(username='root')
|
||||
author = User.objects.get(username="root")
|
||||
|
||||
imagefile = ImageFile(
|
||||
file=case_study.image,
|
||||
caption=case_study.image_caption,
|
||||
credit=case_study.image_credit,
|
||||
user=author
|
||||
user=author,
|
||||
)
|
||||
imagefile.save()
|
||||
case_study.images.add(imagefile)
|
||||
@ -27,10 +27,6 @@ def copy_images(apps, schema_editor):
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0065_casestudy_images'),
|
||||
]
|
||||
dependencies = [("map", "0065_casestudy_images")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(copy_images, migrations.RunPython.noop),
|
||||
]
|
||||
operations = [migrations.RunPython(copy_images, migrations.RunPython.noop)]
|
||||
|
@ -7,21 +7,10 @@ from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0066_copy_images_to_imagefiles'),
|
||||
]
|
||||
dependencies = [("map", "0066_copy_images_to_imagefiles")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='image',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='image_caption',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='image_credit',
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="image"),
|
||||
migrations.RemoveField(model_name="casestudy", name="image_caption"),
|
||||
migrations.RemoveField(model_name="casestudy", name="image_credit"),
|
||||
]
|
||||
|
@ -8,15 +8,15 @@ import django.utils.timezone
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0067_remove_old_images'),
|
||||
]
|
||||
dependencies = [("map", "0067_remove_old_images")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudydraft',
|
||||
name='created',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
|
||||
preserve_default=False,
|
||||
model_name="casestudydraft",
|
||||
name="created",
|
||||
field=models.DateTimeField(
|
||||
auto_now_add=True, default=django.utils.timezone.now
|
||||
),
|
||||
preserve_default=False,
|
||||
)
|
||||
]
|
||||
|
@ -6,75 +6,72 @@ from django.db import migrations, models
|
||||
import multiselectfield.db.fields
|
||||
|
||||
string_fields = [
|
||||
'additional_technical_details',
|
||||
'associated_infrastructure',
|
||||
'biomass_detail',
|
||||
'community_voices',
|
||||
'contractor_or_supplier_of_technology',
|
||||
'direct_comms',
|
||||
'entry_name',
|
||||
'full_description',
|
||||
'generation_equipment_supplier',
|
||||
'generation_technology',
|
||||
'generation_technology_other',
|
||||
'identified_partnerships',
|
||||
'isolated_or_widespread',
|
||||
'key_actors_involved',
|
||||
'land_ownership',
|
||||
'land_ownership_details',
|
||||
'media_coverage_independent',
|
||||
'media_coverage_mainstream',
|
||||
'minerals_or_commodities',
|
||||
'minerals_or_commodities_other',
|
||||
'name_of_territory_or_area',
|
||||
'negative_case_reasons',
|
||||
'negative_case_reasons_other',
|
||||
'negative_socioenvironmental_impacts',
|
||||
'obstacles_and_hindrances',
|
||||
'positive_case_type',
|
||||
'potential_partnerships',
|
||||
'power_technology',
|
||||
'power_technology_other',
|
||||
'project_status',
|
||||
'project_status_detail',
|
||||
'projected_production_of_commodities',
|
||||
'sector_of_economy',
|
||||
'size_of_concessions',
|
||||
'social_media_links',
|
||||
'socioeconomic_benefits',
|
||||
'type_of_ecosystem',
|
||||
'type_of_extraction',
|
||||
'use_in_energy_economy',
|
||||
'use_in_energy_economy_other',
|
||||
'video_caption',
|
||||
'video_credit',
|
||||
'when_did_organising_start',
|
||||
'who_has_been_involved',
|
||||
"additional_technical_details",
|
||||
"associated_infrastructure",
|
||||
"biomass_detail",
|
||||
"community_voices",
|
||||
"contractor_or_supplier_of_technology",
|
||||
"direct_comms",
|
||||
"entry_name",
|
||||
"full_description",
|
||||
"generation_equipment_supplier",
|
||||
"generation_technology",
|
||||
"generation_technology_other",
|
||||
"identified_partnerships",
|
||||
"isolated_or_widespread",
|
||||
"key_actors_involved",
|
||||
"land_ownership",
|
||||
"land_ownership_details",
|
||||
"media_coverage_independent",
|
||||
"media_coverage_mainstream",
|
||||
"minerals_or_commodities",
|
||||
"minerals_or_commodities_other",
|
||||
"name_of_territory_or_area",
|
||||
"negative_case_reasons",
|
||||
"negative_case_reasons_other",
|
||||
"negative_socioenvironmental_impacts",
|
||||
"obstacles_and_hindrances",
|
||||
"positive_case_type",
|
||||
"potential_partnerships",
|
||||
"power_technology",
|
||||
"power_technology_other",
|
||||
"project_status",
|
||||
"project_status_detail",
|
||||
"projected_production_of_commodities",
|
||||
"sector_of_economy",
|
||||
"size_of_concessions",
|
||||
"social_media_links",
|
||||
"socioeconomic_benefits",
|
||||
"type_of_ecosystem",
|
||||
"type_of_extraction",
|
||||
"use_in_energy_economy",
|
||||
"use_in_energy_economy_other",
|
||||
"video_caption",
|
||||
"video_credit",
|
||||
"when_did_organising_start",
|
||||
"who_has_been_involved",
|
||||
]
|
||||
|
||||
|
||||
def remove_nulls(apps, schema_editor):
|
||||
# We can't import the Person model directly as it may be a newer
|
||||
# version than this migration expects. We use the historical version.
|
||||
CaseStudy = apps.get_model('map', 'CaseStudy')
|
||||
CaseStudy = apps.get_model("map", "CaseStudy")
|
||||
for study in CaseStudy.objects.all():
|
||||
for field in string_fields:
|
||||
if getattr(study, field) == None:
|
||||
setattr(study, field, '')
|
||||
setattr(study, field, "")
|
||||
|
||||
try:
|
||||
study.save()
|
||||
except:
|
||||
from pdb import set_trace; set_trace()
|
||||
from pdb import set_trace
|
||||
|
||||
set_trace()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0068_casestudydraft_created'),
|
||||
]
|
||||
dependencies = [("map", "0068_casestudydraft_created")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(remove_nulls, migrations.RunPython.noop),
|
||||
]
|
||||
operations = [migrations.RunPython(remove_nulls, migrations.RunPython.noop)]
|
||||
|
@ -8,259 +8,726 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0069_remove_null_from_text_fields'),
|
||||
]
|
||||
dependencies = [("map", "0069_remove_null_from_text_fields")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='additional_technical_details',
|
||||
field=models.CharField(blank=True, help_text='Add any additional details such as: length, from-to, voltage, substations etc', max_length=512, verbose_name='Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="additional_technical_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Add any additional details such as: length, from-to, voltage, substations etc",
|
||||
max_length=512,
|
||||
verbose_name="Additional technical or economic details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='associated_infrastructure',
|
||||
field=models.CharField(blank=True, help_text='List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail.', max_length=256, verbose_name='Associated infrastructure in the locality'),
|
||||
model_name="casestudy",
|
||||
name="associated_infrastructure",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail.",
|
||||
max_length=256,
|
||||
verbose_name="Associated infrastructure in the locality",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, help_text='If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)', max_length=200, verbose_name='Description of feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="If you selected biogas or biomass, please describe the feedstock (where the fuel came from e.g. corn, algae, anaerobic digestion, commercial waste etc)",
|
||||
max_length=200,
|
||||
verbose_name="Description of feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, help_text='Add any direct quotes from members of the community that relate to this project', verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='contractor_or_supplier_of_technology',
|
||||
field=models.CharField(blank=True, help_text='List companies that act as contractors or suppliers of technology related to energy storage.', max_length=256, verbose_name='Contractor and/or supplier of technology'),
|
||||
model_name="casestudy",
|
||||
name="contractor_or_supplier_of_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="List companies that act as contractors or suppliers of technology related to energy storage.",
|
||||
max_length=256,
|
||||
verbose_name="Contractor and/or supplier of technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='direct_comms',
|
||||
field=models.TextField(blank=True, help_text='Add any reports of direct communication between community members and representatives of developers/companies/investors.', verbose_name='Reports of direct communications'),
|
||||
model_name="casestudy",
|
||||
name="direct_comms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors.",
|
||||
verbose_name="Reports of direct communications",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='discharge_time',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the time it takes to discharge from full capacity at maximum power output (in hours).', max_digits=6, null=True, verbose_name='Time for discharge from full capacity'),
|
||||
model_name="casestudy",
|
||||
name="discharge_time",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
help_text="Enter the time it takes to discharge from full capacity at maximum power output (in hours).",
|
||||
max_digits=6,
|
||||
null=True,
|
||||
verbose_name="Time for discharge from full capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_storage_capacity',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the total capacity of the energy storage system in kilowatt-hours (kWh).', max_digits=20, null=True, verbose_name='Energy storage capacity'),
|
||||
model_name="casestudy",
|
||||
name="energy_storage_capacity",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
help_text="Enter the total capacity of the energy storage system in kilowatt-hours (kWh).",
|
||||
max_digits=20,
|
||||
null=True,
|
||||
verbose_name="Energy storage capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Enter the name of the entry. This should usually be the name of project.', max_length=128, verbose_name='Entry Name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Enter the name of the entry. This should usually be the name of project.",
|
||||
max_length=128,
|
||||
verbose_name="Entry Name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.', verbose_name='Full Description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with a new line Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full Description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_equipment_supplier',
|
||||
field=models.TextField(blank=True, help_text='Enter the supplier of the generation equipment. (E.g. Siemens)', verbose_name='Generation equipment supplier'),
|
||||
model_name="casestudy",
|
||||
name="generation_equipment_supplier",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Enter the supplier of the generation equipment. (E.g. Siemens)",
|
||||
verbose_name="Generation equipment supplier",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('Wind energy', (('SSWE', 'Small-scale (less than 500kW)'), ('LSWE', 'Large-scale (more than 500kW)'))), ('Photovoltaic electricity', (('SSPV', 'Small-scale (less than 500kW)'), ('LSPV', 'Large-scale (more than 500kW)'))), ('Hydroelectric', (('SHYD', 'Small-scale (less than 1MW)'), ('MHYD', 'Medium-scale (between 1-20MW)'), ('LHYD', 'Large-scale (more than 20MW - often not considered renewable)'))), ('STHE', 'Solar thermal electricity (e.g using parabolic reflectors)'), ('GEOT', 'Geothermal electricity'), ('BIOG', 'Biogas turbine'), ('OTHB', 'Other biomass (including liquid/solid biofuel)'), ('OTHR', 'Other (tidal, wave etc)')], help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(
|
||||
"Wind energy",
|
||||
(
|
||||
("SSWE", "Small-scale (less than 500kW)"),
|
||||
("LSWE", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Photovoltaic electricity",
|
||||
(
|
||||
("SSPV", "Small-scale (less than 500kW)"),
|
||||
("LSPV", "Large-scale (more than 500kW)"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Hydroelectric",
|
||||
(
|
||||
("SHYD", "Small-scale (less than 1MW)"),
|
||||
("MHYD", "Medium-scale (between 1-20MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale (more than 20MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"STHE",
|
||||
"Solar thermal electricity (e.g using parabolic reflectors)",
|
||||
),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
("BIOG", "Biogas turbine"),
|
||||
("OTHB", "Other biomass (including liquid/solid biofuel)"),
|
||||
("OTHR", "Other (tidal, wave etc)"),
|
||||
],
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology_other',
|
||||
field=models.CharField(blank=True, help_text='If you selected other, please specify the generation technology (e.g. tidal, wave etc)', max_length=200, verbose_name='Other generation type'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="If you selected other, please specify the generation technology (e.g. tidal, wave etc)",
|
||||
max_length=200,
|
||||
verbose_name="Other generation type",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='identified_partnerships',
|
||||
field=models.CharField(blank=True, help_text='Are you looking for partnerships or have any clearly identified need? If so, please describe it here.', max_length=256, verbose_name='Identified partnerships'),
|
||||
model_name="casestudy",
|
||||
name="identified_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Are you looking for partnerships or have any clearly identified need? If so, please describe it here.",
|
||||
max_length=256,
|
||||
verbose_name="Identified partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='isolated_or_widespread',
|
||||
field=models.TextField(blank=True, help_text='Is this an isolated project or are there similar projects in the same geographic area? If there are more, can you describe them? Are there any significant cumulative synergistic effects?', verbose_name='Describe if the project is isolated or commonplace.'),
|
||||
model_name="casestudy",
|
||||
name="isolated_or_widespread",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Is this an isolated project or are there similar projects in the same geographic area? If there are more, can you describe them? Are there any significant cumulative synergistic effects?",
|
||||
verbose_name="Describe if the project is isolated or commonplace.",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='key_actors_involved',
|
||||
field=models.TextField(blank=True, verbose_name='Key actors involved (individual/organisational)'),
|
||||
model_name="casestudy",
|
||||
name="key_actors_involved",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
verbose_name="Key actors involved (individual/organisational)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private Land'), ('PUB', 'Public Land'), ('COM', 'Community Land'), ('OTH', 'Other')], help_text='What type of ownership does the land fall under?', max_length=3, verbose_name='Land ownership'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private Land"),
|
||||
("PUB", "Public Land"),
|
||||
("COM", "Community Land"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.CharField(blank=True, help_text='Please specify details about land ownership', max_length=256, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please specify details about land ownership",
|
||||
max_length=256,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='maximum_power_output',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the maximum power output of the storage system in kilowatts (kW).', max_digits=12, null=True, verbose_name='Maximum power output'),
|
||||
model_name="casestudy",
|
||||
name="maximum_power_output",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
help_text="Enter the maximum power output of the storage system in kilowatts (kW).",
|
||||
max_digits=12,
|
||||
null=True,
|
||||
verbose_name="Maximum power output",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_independent',
|
||||
field=models.TextField(blank=True, help_text='Provide any links to grassroots/independent media coverage.', verbose_name='Independent grassroots reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_independent",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Provide any links to grassroots/independent media coverage.",
|
||||
verbose_name="Independent grassroots reports",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='media_coverage_mainstream',
|
||||
field=models.TextField(blank=True, help_text='Provide any links to mainstream media coverage.', verbose_name='Links to media reports'),
|
||||
model_name="casestudy",
|
||||
name="media_coverage_mainstream",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Provide any links to mainstream media coverage.",
|
||||
verbose_name="Links to media reports",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='minerals_or_commodities',
|
||||
field=models.CharField(blank=True, choices=[('ALU', 'Aluminium (Bauxite)'), ('ARS', 'Arsenic'), ('BER', 'Beryllium'), ('CAD', 'Cadmium'), ('CHR', 'Chromium'), ('COK', 'Coking'), ('COA', 'Coal (for steel)'), ('COP', 'Copper'), ('GAL', 'Gallium'), ('GER', 'Germanium'), ('GLD', 'Gold'), ('HRE', 'Heavy Rare Earth Elements (Gadolinium, Terbium, Dysprosium, Holmium, Erbium, Thulium, Ytterbium, Lutetium, Yttrium, Scandium)'), ('IRN', 'Iron'), ('LRE', 'Light Rare Earth Elements (Lanthanum, Cerium, Praseodymium, Neodymium, Promethium, Samarium, Europium)'), ('LED', 'Lead'), ('LIT', 'Lithium'), ('MAN', 'Manganese'), ('MER', 'Mercury'), ('MOL', 'Molybdenum'), ('NIC', 'Nickel'), ('NIO', 'Niobium'), ('PGM', 'Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)'), ('RHE', 'Rhenium'), ('SIL', 'Silicon'), ('SIV', 'Silver'), ('TAN', 'Tantalum'), ('TEL', 'Tellurium'), ('THA', 'Thallium'), ('TIN', 'Tin'), ('TIT', 'Titanium'), ('TUN', 'Tungsten'), ('VAN', 'Vanadium'), ('ZNC', 'Zinc'), ('OTR', 'Other')], help_text='Select the mineral commodity that is primarily mined in this project', max_length=3, verbose_name='Mineral commodity/commodities'),
|
||||
model_name="casestudy",
|
||||
name="minerals_or_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("ALU", "Aluminium (Bauxite)"),
|
||||
("ARS", "Arsenic"),
|
||||
("BER", "Beryllium"),
|
||||
("CAD", "Cadmium"),
|
||||
("CHR", "Chromium"),
|
||||
("COK", "Coking"),
|
||||
("COA", "Coal (for steel)"),
|
||||
("COP", "Copper"),
|
||||
("GAL", "Gallium"),
|
||||
("GER", "Germanium"),
|
||||
("GLD", "Gold"),
|
||||
(
|
||||
"HRE",
|
||||
"Heavy Rare Earth Elements (Gadolinium, Terbium, Dysprosium, Holmium, Erbium, Thulium, Ytterbium, Lutetium, Yttrium, Scandium)",
|
||||
),
|
||||
("IRN", "Iron"),
|
||||
(
|
||||
"LRE",
|
||||
"Light Rare Earth Elements (Lanthanum, Cerium, Praseodymium, Neodymium, Promethium, Samarium, Europium)",
|
||||
),
|
||||
("LED", "Lead"),
|
||||
("LIT", "Lithium"),
|
||||
("MAN", "Manganese"),
|
||||
("MER", "Mercury"),
|
||||
("MOL", "Molybdenum"),
|
||||
("NIC", "Nickel"),
|
||||
("NIO", "Niobium"),
|
||||
(
|
||||
"PGM",
|
||||
"Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)",
|
||||
),
|
||||
("RHE", "Rhenium"),
|
||||
("SIL", "Silicon"),
|
||||
("SIV", "Silver"),
|
||||
("TAN", "Tantalum"),
|
||||
("TEL", "Tellurium"),
|
||||
("THA", "Thallium"),
|
||||
("TIN", "Tin"),
|
||||
("TIT", "Titanium"),
|
||||
("TUN", "Tungsten"),
|
||||
("VAN", "Vanadium"),
|
||||
("ZNC", "Zinc"),
|
||||
("OTR", "Other"),
|
||||
],
|
||||
help_text="Select the mineral commodity that is primarily mined in this project",
|
||||
max_length=3,
|
||||
verbose_name="Mineral commodity/commodities",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='minerals_or_commodities_other',
|
||||
field=models.CharField(blank=True, help_text="Enter the mineral commodity that isn't in the list.", max_length=64, verbose_name='Other mineral commodity'),
|
||||
model_name="casestudy",
|
||||
name="minerals_or_commodities_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Enter the mineral commodity that isn't in the list.",
|
||||
max_length=64,
|
||||
verbose_name="Other mineral commodity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='name_of_territory_or_area',
|
||||
field=models.CharField(blank=True, max_length=512, verbose_name='Name of territory or area'),
|
||||
model_name="casestudy",
|
||||
name="name_of_territory_or_area",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=512, verbose_name="Name of territory or area"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime etc'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest etc'), ('OTHR', 'Other reasons')], max_length=39, verbose_name='Reasons this is a negative case study'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land etc)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime etc",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest etc",
|
||||
),
|
||||
("OTHR", "Other reasons"),
|
||||
],
|
||||
max_length=39,
|
||||
verbose_name="Reasons this is a negative case study",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons_other',
|
||||
field=models.CharField(blank=True, help_text='Please include other reasons, noting that we aim to focus on projects with substantive negative impacts on vulnerable groups.', max_length=512, verbose_name='Other reason for negative case'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Please include other reasons, noting that we aim to focus on projects with substantive negative impacts on vulnerable groups.",
|
||||
max_length=512,
|
||||
verbose_name="Other reason for negative case",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_socioenvironmental_impacts',
|
||||
field=models.TextField(blank=True, help_text='Provide a detailed description of the negative socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, , specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.', verbose_name='Describe the negative socio-environmental impacts'),
|
||||
model_name="casestudy",
|
||||
name="negative_socioenvironmental_impacts",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Provide a detailed description of the negative socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, , specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.",
|
||||
verbose_name="Describe the negative socio-environmental impacts",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='obstacles_and_hindrances',
|
||||
field=models.CharField(blank=True, help_text='List any obstacles or hindrances experienced in the course of the project', max_length=512, verbose_name='Obstacles and hindrances'),
|
||||
model_name="casestudy",
|
||||
name="obstacles_and_hindrances",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="List any obstacles or hindrances experienced in the course of the project",
|
||||
max_length=512,
|
||||
verbose_name="Obstacles and hindrances",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='positive_case_type',
|
||||
field=models.CharField(blank=True, choices=[('CREP', 'Community renewable energy project'), ('EACP', 'Energy as a commons project'), ('PSEP', 'Public/state (federal, state, municipal) energy project'), ('CORS', 'A case of responsible sourcing/supply chain/lifecycle management')], help_text='Select the most relevant type of positive case', max_length=4, verbose_name='What kind of positive case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="positive_case_type",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("CREP", "Community renewable energy project"),
|
||||
("EACP", "Energy as a commons project"),
|
||||
("PSEP", "Public/state (federal, state, municipal) energy project"),
|
||||
(
|
||||
"CORS",
|
||||
"A case of responsible sourcing/supply chain/lifecycle management",
|
||||
),
|
||||
],
|
||||
help_text="Select the most relevant type of positive case",
|
||||
max_length=4,
|
||||
verbose_name="What kind of positive case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='potential_partnerships',
|
||||
field=models.CharField(blank=True, help_text='Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.', max_length=512, verbose_name='Describe potential partnerships'),
|
||||
model_name="casestudy",
|
||||
name="potential_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.",
|
||||
max_length=512,
|
||||
verbose_name="Describe potential partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology',
|
||||
field=models.CharField(blank=True, choices=[('PT', 'Power transmission (grid lines, substations etc)'), ('ES', 'Energy storage (pumped storage, compressed air, battery systems etc'), ('OT', 'Others')], help_text='Select the related energy technology.', max_length=2, verbose_name='Power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PT", "Power transmission (grid lines, substations etc)"),
|
||||
(
|
||||
"ES",
|
||||
"Energy storage (pumped storage, compressed air, battery systems etc",
|
||||
),
|
||||
("OT", "Others"),
|
||||
],
|
||||
help_text="Select the related energy technology.",
|
||||
max_length=2,
|
||||
verbose_name="Power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='power_technology_other',
|
||||
field=models.CharField(blank=True, help_text="If you answered 'others', please specify the power technologies.", max_length=128, verbose_name='Other power technology'),
|
||||
model_name="casestudy",
|
||||
name="power_technology_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="If you answered 'others', please specify the power technologies.",
|
||||
max_length=128,
|
||||
verbose_name="Other power technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status',
|
||||
field=models.CharField(choices=[('EXSTNG', 'Existing Project'), ('UCONST', 'Under Construction'), ('PROJCD', 'Projected Project')], help_text='What is the status of the current project?', max_length=6, verbose_name='Status of Project'),
|
||||
model_name="casestudy",
|
||||
name="project_status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("EXSTNG", "Existing Project"),
|
||||
("UCONST", "Under Construction"),
|
||||
("PROJCD", "Projected Project"),
|
||||
],
|
||||
help_text="What is the status of the current project?",
|
||||
max_length=6,
|
||||
verbose_name="Status of Project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_status_detail',
|
||||
field=models.TextField(blank=True, help_text="Describe the current status of the project, expanding beyond 'existing', 'under construction' etc", verbose_name='Current status of the project'),
|
||||
model_name="casestudy",
|
||||
name="project_status_detail",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Describe the current status of the project, expanding beyond 'existing', 'under construction' etc",
|
||||
verbose_name="Current status of the project",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='projected_production_of_commodities',
|
||||
field=models.CharField(blank=True, help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'", max_length=256, verbose_name='Projected production of key commodities'),
|
||||
model_name="casestudy",
|
||||
name="projected_production_of_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Describe the projected production of commodities per annum and overall (e.g. '40 million tonnes of iron ore per year, 200 million tonnes over 5 year life of mine'",
|
||||
max_length=256,
|
||||
verbose_name="Projected production of key commodities",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable Energy Generation'), ('PG', 'Power Grids'), ('SM', 'Supply of Minerals')], help_text='Which sector of the renewable energy economy is most relevant?', max_length=3, verbose_name='Sector of economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable Energy Generation"),
|
||||
("PG", "Power Grids"),
|
||||
("SM", "Supply of Minerals"),
|
||||
],
|
||||
help_text="Which sector of the renewable energy economy is most relevant?",
|
||||
max_length=3,
|
||||
verbose_name="Sector of economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='size_of_concessions',
|
||||
field=models.CharField(blank=True, help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')", max_length=200, verbose_name='Size of concessions'),
|
||||
model_name="casestudy",
|
||||
name="size_of_concessions",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Describe the size of concession(s) granted to company/companies (e.g. 'one concession encompassing 2,300 hectares')",
|
||||
max_length=200,
|
||||
verbose_name="Size of concessions",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='social_media_links',
|
||||
field=models.TextField(blank=True, help_text='Add any links to social media accounts directly relating to the project.', max_length=500, verbose_name='Social media links'),
|
||||
model_name="casestudy",
|
||||
name="social_media_links",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any links to social media accounts directly relating to the project.",
|
||||
max_length=500,
|
||||
verbose_name="Social media links",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='socioeconomic_benefits',
|
||||
field=models.TextField(blank=True, help_text='Please expand on your response given in the full description on page one. We would expect benefits to go beyond emissions savings, paying rent for land, or complying with environmental or social legislation', verbose_name='Socio-economic benefits'),
|
||||
model_name="casestudy",
|
||||
name="socioeconomic_benefits",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Please expand on your response given in the full description on page one. We would expect benefits to go beyond emissions savings, paying rent for land, or complying with environmental or social legislation",
|
||||
verbose_name="Socio-economic benefits",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='start_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1978, 1978), (1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058)], help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.", null=True, verbose_name='Start year'),
|
||||
model_name="casestudy",
|
||||
name="start_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1978, 1978),
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
],
|
||||
help_text="Select the year the project was started. If the project hasn't begun, select the projected start year.",
|
||||
null=True,
|
||||
verbose_name="Start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='total_generation_capacity',
|
||||
field=models.PositiveIntegerField(blank=True, help_text='Please enter the total generation capacity of the project in kW', null=True, verbose_name='Total generation capacity (in kW)'),
|
||||
model_name="casestudy",
|
||||
name="total_generation_capacity",
|
||||
field=models.PositiveIntegerField(
|
||||
blank=True,
|
||||
help_text="Please enter the total generation capacity of the project in kW",
|
||||
null=True,
|
||||
verbose_name="Total generation capacity (in kW)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='total_investment',
|
||||
field=models.IntegerField(blank=True, help_text='The approximate total investment for the project in USD.', null=True, verbose_name='Total investment (in USD)'),
|
||||
model_name="casestudy",
|
||||
name="total_investment",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
help_text="The approximate total investment for the project in USD.",
|
||||
null=True,
|
||||
verbose_name="Total investment (in USD)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. Ocean, Sea)'), ('FRESH', 'Freshwater (e.g. Freshwater, Lake)'), ('FOREST', 'Forest/Jungle'), ('AGRI', 'Agricultural Land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (Tundra, Ice or Sand)'), ('WETLND', 'Wetland (Marsh, Mangrove, Peat Soil)'), ('URBAN', 'Urban')], help_text='Select the most relevant type(s).', max_length=56, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. Ocean, Sea)"),
|
||||
("FRESH", "Freshwater (e.g. Freshwater, Lake)"),
|
||||
("FOREST", "Forest/Jungle"),
|
||||
("AGRI", "Agricultural Land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (Tundra, Ice or Sand)"),
|
||||
("WETLND", "Wetland (Marsh, Mangrove, Peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
help_text="Select the most relevant type(s).",
|
||||
max_length=56,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_extraction',
|
||||
field=models.CharField(blank=True, choices=[('SUR', 'Surface (open pit/open cast/open cut mining)'), ('SUB', 'Sub-surface (underground mining)'), ('SEA', 'Seabed mining'), ('URB', 'Urban mining/recycling')], max_length=3, verbose_name='Type of extraction'),
|
||||
model_name="casestudy",
|
||||
name="type_of_extraction",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("SUR", "Surface (open pit/open cast/open cut mining)"),
|
||||
("SUB", "Sub-surface (underground mining)"),
|
||||
("SEA", "Seabed mining"),
|
||||
("URB", "Urban mining/recycling"),
|
||||
],
|
||||
max_length=3,
|
||||
verbose_name="Type of extraction",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy',
|
||||
field=models.CharField(blank=True, choices=[('WTM', 'Wind turbine manufacturing'), ('SPM', 'Solar panel manufacturing'), ('STM', 'Solar thermal system manufacturing'), ('HGM', 'Hydropower generator manufacturing'), ('GGM', 'Geothermal generator manufacturing'), ('ESS', 'Energy storage (inc. battery systems)'), ('OTR', 'Others')], help_text='Select the potential use of the minerals in the renewable energy economy', max_length=3, verbose_name='Potential use in renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("WTM", "Wind turbine manufacturing"),
|
||||
("SPM", "Solar panel manufacturing"),
|
||||
("STM", "Solar thermal system manufacturing"),
|
||||
("HGM", "Hydropower generator manufacturing"),
|
||||
("GGM", "Geothermal generator manufacturing"),
|
||||
("ESS", "Energy storage (inc. battery systems)"),
|
||||
("OTR", "Others"),
|
||||
],
|
||||
help_text="Select the potential use of the minerals in the renewable energy economy",
|
||||
max_length=3,
|
||||
verbose_name="Potential use in renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy_other',
|
||||
field=models.CharField(blank=True, max_length=128, verbose_name='Other use in energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy_other",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=128, verbose_name="Other use in energy economy"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video_caption',
|
||||
field=models.CharField(blank=True, max_length=240, verbose_name='Video caption'),
|
||||
model_name="casestudy",
|
||||
name="video_caption",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=240, verbose_name="Video caption"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='video_credit',
|
||||
field=models.CharField(blank=True, max_length=240, verbose_name='Video credit(s)'),
|
||||
model_name="casestudy",
|
||||
name="video_credit",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=240, verbose_name="Video credit(s)"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='when_did_organising_start',
|
||||
field=models.CharField(blank=True, help_text='Before the project started? During project implementation? After project implementation? Describe in your own words.', max_length=512, verbose_name='When did local organising efforts begin?'),
|
||||
model_name="casestudy",
|
||||
name="when_did_organising_start",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Before the project started? During project implementation? After project implementation? Describe in your own words.",
|
||||
max_length=512,
|
||||
verbose_name="When did local organising efforts begin?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='who_has_been_involved',
|
||||
field=models.TextField(blank=True, verbose_name='Which communities, groups and organisations have been involved?'),
|
||||
model_name="casestudy",
|
||||
name="who_has_been_involved",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
verbose_name="Which communities, groups and organisations have been involved?",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -13,22 +13,44 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('map', '0070_remove_null_from_text_fields_schema'),
|
||||
("map", "0070_remove_null_from_text_fields_schema"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PointOfInterest',
|
||||
name="PointOfInterest",
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('date_created', models.DateTimeField(auto_now_add=True)),
|
||||
('slug', django_extensions.db.fields.AutoSlugField(blank=True, editable=False, populate_from=['entry_name'])),
|
||||
('approved', models.BooleanField(default=False)),
|
||||
('title', models.CharField(max_length=128)),
|
||||
('location', django.contrib.gis.db.models.fields.PointField(srid=4326)),
|
||||
('synopsis', models.TextField()),
|
||||
('link', models.URLField()),
|
||||
('author', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("date_created", models.DateTimeField(auto_now_add=True)),
|
||||
(
|
||||
"slug",
|
||||
django_extensions.db.fields.AutoSlugField(
|
||||
blank=True, editable=False, populate_from=["entry_name"]
|
||||
),
|
||||
),
|
||||
("approved", models.BooleanField(default=False)),
|
||||
("title", models.CharField(max_length=128)),
|
||||
("location", django.contrib.gis.db.models.fields.PointField(srid=4326)),
|
||||
("synopsis", models.TextField()),
|
||||
("link", models.URLField()),
|
||||
(
|
||||
"author",
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
editable=False,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -5,44 +5,79 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0072_auto_20181201_2315'),
|
||||
]
|
||||
dependencies = [("map", "0072_auto_20181201_2315")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='approximate_total_investment',
|
||||
field=models.PositiveIntegerField(blank=True, default=None, help_text='Enter the approximate total investment in USD ($).', null=True, verbose_name='DELETE - Approximate total investment'),
|
||||
model_name="casestudy",
|
||||
name="approximate_total_investment",
|
||||
field=models.PositiveIntegerField(
|
||||
blank=True,
|
||||
default=None,
|
||||
help_text="Enter the approximate total investment in USD ($).",
|
||||
null=True,
|
||||
verbose_name="DELETE - Approximate total investment",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='discharge_time',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the time it takes to discharge from full capacity at maximum power output (in hours).', max_digits=6, null=True, verbose_name='DELETE - Time for discharge from full capacity'),
|
||||
model_name="casestudy",
|
||||
name="discharge_time",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
help_text="Enter the time it takes to discharge from full capacity at maximum power output (in hours).",
|
||||
max_digits=6,
|
||||
null=True,
|
||||
verbose_name="DELETE - Time for discharge from full capacity",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_equipment_supplier',
|
||||
field=models.TextField(blank=True, help_text='Enter the supplier of the generation equipment. (E.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.)', verbose_name='DELETE - Generation equipment supplier(s)'),
|
||||
model_name="casestudy",
|
||||
name="generation_equipment_supplier",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Enter the supplier of the generation equipment. (E.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.)",
|
||||
verbose_name="DELETE - Generation equipment supplier(s)",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='maximum_power_output',
|
||||
field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the maximum power output of the storage system in kilowatts (kW).', max_digits=12, null=True, verbose_name='DELETE - Maximum power output'),
|
||||
model_name="casestudy",
|
||||
name="maximum_power_output",
|
||||
field=models.DecimalField(
|
||||
blank=True,
|
||||
decimal_places=3,
|
||||
help_text="Enter the maximum power output of the storage system in kilowatts (kW).",
|
||||
max_digits=12,
|
||||
null=True,
|
||||
verbose_name="DELETE - Maximum power output",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='people_affected_indigenous',
|
||||
field=models.TextField(blank=True, help_text='What group or groups of indigenous people are affected by this project? Please separate by newline.', verbose_name='DELETE - Indigenous people affected'),
|
||||
model_name="casestudy",
|
||||
name="people_affected_indigenous",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="What group or groups of indigenous people are affected by this project? Please separate by newline.",
|
||||
verbose_name="DELETE - Indigenous people affected",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='potential_partnerships',
|
||||
field=models.CharField(blank=True, help_text='Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.', max_length=512, verbose_name='DELETE - Describe potential partnerships'),
|
||||
model_name="casestudy",
|
||||
name="potential_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.",
|
||||
max_length=512,
|
||||
verbose_name="DELETE - Describe potential partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='technical_or_economic_details',
|
||||
field=models.TextField(blank=True, help_text='Specify any additional technical or economic details relating to the project.', verbose_name='DELETE - Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="technical_or_economic_details",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Specify any additional technical or economic details relating to the project.",
|
||||
verbose_name="DELETE - Additional technical or economic details",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -5,37 +5,22 @@ from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0073_auto_20181202_0209'),
|
||||
]
|
||||
dependencies = [("map", "0073_auto_20181202_0209")]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='approximate_total_investment',
|
||||
model_name="casestudy", name="approximate_total_investment"
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="discharge_time"),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='discharge_time',
|
||||
model_name="casestudy", name="generation_equipment_supplier"
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="maximum_power_output"),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='generation_equipment_supplier',
|
||||
model_name="casestudy", name="people_affected_indigenous"
|
||||
),
|
||||
migrations.RemoveField(model_name="casestudy", name="potential_partnerships"),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='maximum_power_output',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='people_affected_indigenous',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='potential_partnerships',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='casestudy',
|
||||
name='technical_or_economic_details',
|
||||
model_name="casestudy", name="technical_or_economic_details"
|
||||
),
|
||||
]
|
||||
|
@ -5,44 +5,234 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0074_auto_20181202_0223'),
|
||||
]
|
||||
dependencies = [("map", "0074_auto_20181202_0223")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='language',
|
||||
model_name="casestudy",
|
||||
name="language",
|
||||
field=models.CharField(blank=True, max_length=16),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='area_of_land',
|
||||
field=models.IntegerField(help_text='The area of land covered by the project (km²)', verbose_name='Approximate land area'),
|
||||
model_name="casestudy",
|
||||
name="area_of_land",
|
||||
field=models.IntegerField(
|
||||
help_text="The area of land covered by the project (km²)",
|
||||
verbose_name="Approximate land area",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='completion_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], default=None, help_text="Select the year the project's operation and maintenance (O&M) phase began. If the project is not yet in operation, select the year operation is expected to begin as detailed in company information or media.", null=True, verbose_name='Operation start year'),
|
||||
model_name="casestudy",
|
||||
name="completion_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
(2059, 2059),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project's operation and maintenance (O&M) phase began. If the project is not yet in operation, select the year operation is expected to begin as detailed in company information or media.",
|
||||
null=True,
|
||||
verbose_name="Operation start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='entry_name',
|
||||
field=models.CharField(help_text='Please write the local name, followed by any translated name if necessary.', max_length=128, verbose_name='Project name'),
|
||||
model_name="casestudy",
|
||||
name="entry_name",
|
||||
field=models.CharField(
|
||||
help_text="Please write the local name, followed by any translated name if necessary.",
|
||||
max_length=128,
|
||||
verbose_name="Project name",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.TextField(blank=True, help_text="<p class='text-muted'>Please specify details about land ownership, including conflicting claims, unrecognized customary rights, conflicts around land lease or purchase contracts, etc. <p class='text-muted'>We understand this is a difficult question, so please try to provide <b>just the information you know</b>.</p>", max_length=256, verbose_name='Land ownership details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="<p class='text-muted'>Please specify details about land ownership, including conflicting claims, unrecognized customary rights, conflicts around land lease or purchase contracts, etc. <p class='text-muted'>We understand this is a difficult question, so please try to provide <b>just the information you know</b>.</p>",
|
||||
max_length=256,
|
||||
verbose_name="Land ownership details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='start_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], help_text='Select the year project construction began. If the project is not yet in construction, select the assumed start year as detailed in company information or media.', null=True, verbose_name='Construction start year'),
|
||||
model_name="casestudy",
|
||||
name="start_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
(2059, 2059),
|
||||
],
|
||||
help_text="Select the year project construction began. If the project is not yet in construction, select the assumed start year as detailed in company information or media.",
|
||||
null=True,
|
||||
verbose_name="Construction start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='synopsis',
|
||||
field=models.TextField(help_text='Briefly summarise the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', verbose_name='Project synopsis'),
|
||||
model_name="casestudy",
|
||||
name="synopsis",
|
||||
field=models.TextField(
|
||||
help_text="Briefly summarise the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)",
|
||||
verbose_name="Project synopsis",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
@ -5,14 +5,12 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0075_auto_20190304_2016'),
|
||||
]
|
||||
dependencies = [("map", "0075_auto_20190304_2016")]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='casestudy',
|
||||
name='form_type',
|
||||
model_name="casestudy",
|
||||
name="form_type",
|
||||
field=models.CharField(blank=True, max_length=16),
|
||||
),
|
||||
)
|
||||
]
|
||||
|
@ -6,204 +6,749 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0076_casestudy_form_type'),
|
||||
]
|
||||
dependencies = [("map", "0076_casestudy_form_type")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='additional_technical_details',
|
||||
field=models.TextField(blank=True, help_text='Add any additional details such as: length, from-to, voltage, substations, power output, (dis)charge rates, how this technology or project interacts with the energy system (e.g. provides reactive power to ensure power supply in phase etc.)', verbose_name='Additional technical or economic details'),
|
||||
model_name="casestudy",
|
||||
name="additional_technical_details",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any additional details such as: length, from-to, voltage, substations, power output, (dis)charge rates, how this technology or project interacts with the energy system (e.g. provides reactive power to ensure power supply in phase etc.)",
|
||||
verbose_name="Additional technical or economic details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='affected_communities',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('INDIG', 'Indigenous people(s)'), ('AFRO', 'Afro-descendants'), ('MIG', 'Migrants'), ('REF', 'Refugees'), ('OTHER', 'Other communities or identities')], max_length=50, verbose_name='Communities or identities present in the project area'),
|
||||
model_name="casestudy",
|
||||
name="affected_communities",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("INDIG", "Indigenous people(s)"),
|
||||
("AFRO", "Afro-descendants"),
|
||||
("MIG", "Migrants"),
|
||||
("REF", "Refugees"),
|
||||
("OTHER", "Other communities or identities"),
|
||||
],
|
||||
max_length=50,
|
||||
verbose_name="Communities or identities present in the project area",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='associated_infrastructure',
|
||||
field=models.CharField(blank=True, help_text='List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail).', max_length=256, verbose_name='Associated infrastructure in the locality'),
|
||||
model_name="casestudy",
|
||||
name="associated_infrastructure",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="List any associated infrastructure in the locality (e.g. tailings dams/mine waste storage and treatment facilities; ore processing facilities; smelting facilities; hydroelectric dams/energy infrastructure; transport infrastructure e.g. roads or rail).",
|
||||
max_length=256,
|
||||
verbose_name="Associated infrastructure in the locality",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='biomass_detail',
|
||||
field=models.CharField(blank=True, help_text="<div class='text-muted'><p>Please describe the source of the fuel and how it is processed/used. Please consider:</p><ul><li>where the fuel came from e.g. corn, forestry, algae, commercial food waste, landfill gas, sewage, livestock farm, etc.</li><li>how it is processed e.g. direct-fired, co-firing with other renewable input, gasification, bacterial decomposition (anaerobic digestion, AD), pyrolysis, small/modular, artificial photosynthesis, fuel cell, etc.</li></ul><p>We do not expect users to know this information, but if you do it may be useful to give a fuller picture.</p></div>", max_length=200, verbose_name='Bio-energy feedstock'),
|
||||
model_name="casestudy",
|
||||
name="biomass_detail",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="<div class='text-muted'><p>Please describe the source of the fuel and how it is processed/used. Please consider:</p><ul><li>where the fuel came from e.g. corn, forestry, algae, commercial food waste, landfill gas, sewage, livestock farm, etc.</li><li>how it is processed e.g. direct-fired, co-firing with other renewable input, gasification, bacterial decomposition (anaerobic digestion, AD), pyrolysis, small/modular, artificial photosynthesis, fuel cell, etc.</li></ul><p>We do not expect users to know this information, but if you do it may be useful to give a fuller picture.</p></div>",
|
||||
max_length=200,
|
||||
verbose_name="Bio-energy feedstock",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, help_text='Add any direct quotes from members of the community that relate to this project', verbose_name='Community voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any direct quotes from members of the community that relate to this project",
|
||||
verbose_name="Community voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='completion_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], default=None, help_text="Select the year the project's operation and maintenance (O&M) phase began. If the project is not yet in operation, select the year operation is expected to begin as detailed in company information or media.", null=True, verbose_name='Operation start year'),
|
||||
model_name="casestudy",
|
||||
name="completion_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
(2059, 2059),
|
||||
],
|
||||
default=None,
|
||||
help_text="Select the year the project's operation and maintenance (O&M) phase began. If the project is not yet in operation, select the year operation is expected to begin as detailed in company information or media.",
|
||||
null=True,
|
||||
verbose_name="Operation start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='consultants_contractors',
|
||||
field=models.TextField(blank=True, help_text='List consultants, planners or organisations that are doing the planning, construction, operation or maintenance work relating to the project and/or facilities. Separate each with a new line.', verbose_name='Consultants and contractors'),
|
||||
model_name="casestudy",
|
||||
name="consultants_contractors",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List consultants, planners or organisations that are doing the planning, construction, operation or maintenance work relating to the project and/or facilities. Separate each with a new line.",
|
||||
verbose_name="Consultants and contractors",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='contractor_or_supplier_of_technology',
|
||||
field=models.TextField(blank=True, help_text='List companies that act as contractors or suppliers –\xa0e.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.', verbose_name='Contractor and/or supplier of technology'),
|
||||
model_name="casestudy",
|
||||
name="contractor_or_supplier_of_technology",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List companies that act as contractors or suppliers –\xa0e.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.",
|
||||
verbose_name="Contractor and/or supplier of technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='direct_comms',
|
||||
field=models.TextField(blank=True, help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors. If you have files to upload, you can do this in 'other documents' on the 'uploads' tab.", verbose_name='Reports of direct communications'),
|
||||
model_name="casestudy",
|
||||
name="direct_comms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Add any reports of direct communication between community members and representatives of developers/companies/investors. If you have files to upload, you can do this in 'other documents' on the 'uploads' tab.",
|
||||
verbose_name="Reports of direct communications",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='energy_customers',
|
||||
field=models.TextField(blank=True, help_text="List any energy customers/off-takers that take energy from the development. E.g. 'national grids' or private energy suppliers. Also refer to if carbon markets, credits, blockchain etc. are involved in the process. Please separate with a new line.", verbose_name='Energy service consumers/off-takers'),
|
||||
model_name="casestudy",
|
||||
name="energy_customers",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List any energy customers/off-takers that take energy from the development. E.g. 'national grids' or private energy suppliers. Also refer to if carbon markets, credits, blockchain etc. are involved in the process. Please separate with a new line.",
|
||||
verbose_name="Energy service consumers/off-takers",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='financial_institutions',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('AfDB', 'African Development Bank (AfDB)'), ('BADEA', 'Arab Bank for Economic Development in Africa (BADEA)'), ('ADB', 'Asian Development Bank (ADB)'), ('AIIB', 'Asian Infrastructure Investment Bank (AIIB)'), ('BSTDB', 'Black Sea Trade and Development Bank (BSTDB)'), ('CAF', 'Corporacion Andina de Fomento / Development Bank of Latin America (CAF)'), ('CDB', 'Caribbean Development Bank (CDB)'), ('CABEI', 'Central American Bank for Economic Integration (CABEI)'), ('EADB', 'East African Development Bank (EADB)'), ('ETDB', 'Economic Cooperation Organization Trade and Development Bank (ETDB)'), ('EDB', 'Eurasian Development Bank (EDB)'), ('EBRD', 'European Bank for Reconstruction and Development (EBRD)'), ('EC', 'European Commission (EC)'), ('EIB', 'European Investment Bank (EIB)'), ('IADB', 'Inter-American Development Bank Group (IDB, IADB)'), ('IFFIm', 'International Finance Facility for Immunisation (IFFIm)'), ('IFAD', 'International Fund for Agricultural Development (IFAD)'), ('IIB', 'International Investment Bank (IIB)'), ('IsDB', 'Islamic Development Bank (IsDB)'), ('FMO', 'Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (Netherlands Development Finance Company, FMO)'), ('NDB', 'New Development Bank (NDB) (formerly BRICS Development Bank)'), ('NDF', 'The Nordic Development Fund'), ('NIB', 'Nordic Investment Bank (NIB)'), ('OFID', 'OPEC Fund for International Development (OFID)'), ('BOAD', 'West African Development Bank (BOAD)'), ('WB', 'World Bank')], help_text='Select any financial institutions (public or private) that have, or are considering, extending loans or guarantees to the project.', max_length=119, verbose_name='Financial institutions'),
|
||||
model_name="casestudy",
|
||||
name="financial_institutions",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("AfDB", "African Development Bank (AfDB)"),
|
||||
("BADEA", "Arab Bank for Economic Development in Africa (BADEA)"),
|
||||
("ADB", "Asian Development Bank (ADB)"),
|
||||
("AIIB", "Asian Infrastructure Investment Bank (AIIB)"),
|
||||
("BSTDB", "Black Sea Trade and Development Bank (BSTDB)"),
|
||||
(
|
||||
"CAF",
|
||||
"Corporacion Andina de Fomento / Development Bank of Latin America (CAF)",
|
||||
),
|
||||
("CDB", "Caribbean Development Bank (CDB)"),
|
||||
("CABEI", "Central American Bank for Economic Integration (CABEI)"),
|
||||
("EADB", "East African Development Bank (EADB)"),
|
||||
(
|
||||
"ETDB",
|
||||
"Economic Cooperation Organization Trade and Development Bank (ETDB)",
|
||||
),
|
||||
("EDB", "Eurasian Development Bank (EDB)"),
|
||||
("EBRD", "European Bank for Reconstruction and Development (EBRD)"),
|
||||
("EC", "European Commission (EC)"),
|
||||
("EIB", "European Investment Bank (EIB)"),
|
||||
("IADB", "Inter-American Development Bank Group (IDB, IADB)"),
|
||||
(
|
||||
"IFFIm",
|
||||
"International Finance Facility for Immunisation (IFFIm)",
|
||||
),
|
||||
("IFAD", "International Fund for Agricultural Development (IFAD)"),
|
||||
("IIB", "International Investment Bank (IIB)"),
|
||||
("IsDB", "Islamic Development Bank (IsDB)"),
|
||||
(
|
||||
"FMO",
|
||||
"Nederlandse Financieringsmaatschappij voor Ontwikkelingslanden NV (Netherlands Development Finance Company, FMO)",
|
||||
),
|
||||
(
|
||||
"NDB",
|
||||
"New Development Bank (NDB) (formerly BRICS Development Bank)",
|
||||
),
|
||||
("NDF", "The Nordic Development Fund"),
|
||||
("NIB", "Nordic Investment Bank (NIB)"),
|
||||
("OFID", "OPEC Fund for International Development (OFID)"),
|
||||
("BOAD", "West African Development Bank (BOAD)"),
|
||||
("WB", "World Bank"),
|
||||
],
|
||||
help_text="Select any financial institutions (public or private) that have, or are considering, extending loans or guarantees to the project.",
|
||||
max_length=119,
|
||||
verbose_name="Financial institutions",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='financial_institutions_other',
|
||||
field=models.TextField(blank=True, help_text='List any other financial institutions not listed above. Put each on a new line.', verbose_name='Financial institutions – other'),
|
||||
model_name="casestudy",
|
||||
name="financial_institutions_other",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List any other financial institutions not listed above. Put each on a new line.",
|
||||
verbose_name="Financial institutions – other",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='full_description',
|
||||
field=models.TextField(help_text='Describe the project in full. Separate paragraphs with two new lines. Please add as much detail as you feel is necessary here.', verbose_name='Full description'),
|
||||
model_name="casestudy",
|
||||
name="full_description",
|
||||
field=models.TextField(
|
||||
help_text="Describe the project in full. Separate paragraphs with two new lines. Please add as much detail as you feel is necessary here.",
|
||||
verbose_name="Full description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('BIO', 'Bio-energy'), ('GEOT', 'Geothermal electricity'), ('Hydro', (('uHYD', 'Micro hydro (<100kW)'), ('SHYD', 'Small-scale hydro (<1MW)'), ('MHYD', 'Medium-scale hydro (1-30MW)'), ('LHYD', 'Large-scale hydro (>30MW - often not considered renewable)'))), ('Marine', (('WAVE', 'Wave'), ('TSTR', 'Tidal stream'), ('TBAR', 'Tidal barrage/lagoon'), ('TOTH', 'Other'))), ('Solar', (('SSPV', 'Small-scale photovoltaic (<500kW)'), ('LSPV', 'Large-scale photovoltaic (>500kW)'), ('CSP', 'Solar power tower'), ('PARA', 'Parabolic trough (open or enclosed)'), ('FRES', 'Fresnel reflector'), ('STIR', 'Dish Stirling'))), ('Wind', (('SSWE', 'Small-scale wind (<500kW)'), ('LSWE', 'Large-scale wind (>500kW)'))), ('OTHR', 'Other (tidal, wave, etc.)')], help_text='Select the type of renewable energy generation that most applies to this case study.', max_length=4, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("BIO", "Bio-energy"),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
(
|
||||
"Hydro",
|
||||
(
|
||||
("uHYD", "Micro hydro (<100kW)"),
|
||||
("SHYD", "Small-scale hydro (<1MW)"),
|
||||
("MHYD", "Medium-scale hydro (1-30MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale hydro (>30MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Marine",
|
||||
(
|
||||
("WAVE", "Wave"),
|
||||
("TSTR", "Tidal stream"),
|
||||
("TBAR", "Tidal barrage/lagoon"),
|
||||
("TOTH", "Other"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Solar",
|
||||
(
|
||||
("SSPV", "Small-scale photovoltaic (<500kW)"),
|
||||
("LSPV", "Large-scale photovoltaic (>500kW)"),
|
||||
("CSP", "Solar power tower"),
|
||||
("PARA", "Parabolic trough (open or enclosed)"),
|
||||
("FRES", "Fresnel reflector"),
|
||||
("STIR", "Dish Stirling"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Wind",
|
||||
(
|
||||
("SSWE", "Small-scale wind (<500kW)"),
|
||||
("LSWE", "Large-scale wind (>500kW)"),
|
||||
),
|
||||
),
|
||||
("OTHR", "Other (tidal, wave, etc.)"),
|
||||
],
|
||||
help_text="Select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='identified_partnerships',
|
||||
field=models.CharField(blank=True, help_text='Are you, or the organizing process that you represent, looking for partnerships, or have any clearly identified need? If so, please describe and we will try to connect you to appropriate partners.', max_length=256, verbose_name='Identified partnerships'),
|
||||
model_name="casestudy",
|
||||
name="identified_partnerships",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Are you, or the organizing process that you represent, looking for partnerships, or have any clearly identified need? If so, please describe and we will try to connect you to appropriate partners.",
|
||||
max_length=256,
|
||||
verbose_name="Identified partnerships",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='isolated_or_widespread',
|
||||
field=models.TextField(blank=True, help_text='Is this an isolated project or are there similar projects in the same geographic area? If so, can you describe them? Is there an analysis of cumulative or synergetic effects?', verbose_name='Is the project part of developments which are causing a cumulative effect?'),
|
||||
model_name="casestudy",
|
||||
name="isolated_or_widespread",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Is this an isolated project or are there similar projects in the same geographic area? If so, can you describe them? Is there an analysis of cumulative or synergetic effects?",
|
||||
verbose_name="Is the project part of developments which are causing a cumulative effect?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership',
|
||||
field=models.CharField(choices=[('PRI', 'Private land'), ('PUB', 'Public/state land'), ('COM', 'Community/communal/customary land'), ('CON', 'Contested/in conflict'), ('OTH', 'Other')], help_text='What type of ownership/tenure does the land fall under?', max_length=3, verbose_name='Land ownership/tenure'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("PRI", "Private land"),
|
||||
("PUB", "Public/state land"),
|
||||
("COM", "Community/communal/customary land"),
|
||||
("CON", "Contested/in conflict"),
|
||||
("OTH", "Other"),
|
||||
],
|
||||
help_text="What type of ownership/tenure does the land fall under?",
|
||||
max_length=3,
|
||||
verbose_name="Land ownership/tenure",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='land_ownership_details',
|
||||
field=models.TextField(blank=True, help_text="<p class='text-muted'>Please specify details about land ownership, including conflicting claims, unrecognized customary rights, conflicts around land lease or purchase contracts, etc.<p class='text-muted'>We understand this is a difficult question, so please try to provide <b>just the information you know</b>.</p>", max_length=256, verbose_name='Land ownership/tenure details'),
|
||||
model_name="casestudy",
|
||||
name="land_ownership_details",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="<p class='text-muted'>Please specify details about land ownership, including conflicting claims, unrecognized customary rights, conflicts around land lease or purchase contracts, etc.<p class='text-muted'>We understand this is a difficult question, so please try to provide <b>just the information you know</b>.</p>",
|
||||
max_length=256,
|
||||
verbose_name="Land ownership/tenure details",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_description',
|
||||
field=models.TextField(blank=True, help_text='Briefly describe manufacturing process and components/outputs. (less than 500 characters).', max_length=500, verbose_name='Description'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_description",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Briefly describe manufacturing process and components/outputs. (less than 500 characters).",
|
||||
max_length=500,
|
||||
verbose_name="Description",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_related_tech',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('PV', 'Solar PV'), ('CSP', 'Concentrated solar power (CSP)'), ('WIND', 'Wind power'), ('HYDRO', 'Hydropower'), ('GEO', 'Geothermal'), ('TRANSMIT', 'Electrical power transmission infrastructure'), ('STORE', 'Energy storage'), ('HEAT', 'Heat networks'), ('OTHER', 'Other'), ('IDK', 'Unknown')], max_length=128, verbose_name='What technology is this case related to?'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_related_tech",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PV", "Solar PV"),
|
||||
("CSP", "Concentrated solar power (CSP)"),
|
||||
("WIND", "Wind power"),
|
||||
("HYDRO", "Hydropower"),
|
||||
("GEO", "Geothermal"),
|
||||
("TRANSMIT", "Electrical power transmission infrastructure"),
|
||||
("STORE", "Energy storage"),
|
||||
("HEAT", "Heat networks"),
|
||||
("OTHER", "Other"),
|
||||
("IDK", "Unknown"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="What technology is this case related to?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='minerals_or_commodities',
|
||||
field=models.CharField(blank=True, choices=[('ALU', 'Aluminium (Bauxite)'), ('ARS', 'Arsenic'), ('BER', 'Beryllium'), ('CAD', 'Cadmium'), ('CHR', 'Chromium'), ('COK', 'Coking'), ('COA', 'Coal (for steel)'), ('COP', 'Copper'), ('GAL', 'Gallium'), ('GER', 'Germanium'), ('GLD', 'Gold'), ('HRE', 'Heavy rare earth elements (gadolinium, terbium, dysprosium, holmium, erbium, thulium, ytterbium, lutetium, yttrium, scandium)'), ('IRN', 'Iron'), ('LRE', 'Light rare earth elements (lanthanum, cerium, praseodymium, neodymium, promethium, samarium, europium)'), ('LED', 'Lead'), ('LIT', 'Lithium'), ('MAN', 'Manganese'), ('MER', 'Mercury'), ('MOL', 'Molybdenum'), ('NIC', 'Nickel'), ('NIO', 'Niobium'), ('PGM', 'Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)'), ('RHE', 'Rhenium'), ('SIL', 'Silicon'), ('SIV', 'Silver'), ('TAN', 'Tantalum'), ('TEL', 'Tellurium'), ('THA', 'Thallium'), ('TIN', 'Tin'), ('TIT', 'Titanium'), ('TUN', 'Tungsten'), ('VAN', 'Vanadium'), ('ZNC', 'Zinc'), ('OTR', 'Other')], help_text='What mineral commodity is primarily mined in this project?', max_length=3, verbose_name='Primary mineral mined'),
|
||||
model_name="casestudy",
|
||||
name="minerals_or_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("ALU", "Aluminium (Bauxite)"),
|
||||
("ARS", "Arsenic"),
|
||||
("BER", "Beryllium"),
|
||||
("CAD", "Cadmium"),
|
||||
("CHR", "Chromium"),
|
||||
("COK", "Coking"),
|
||||
("COA", "Coal (for steel)"),
|
||||
("COP", "Copper"),
|
||||
("GAL", "Gallium"),
|
||||
("GER", "Germanium"),
|
||||
("GLD", "Gold"),
|
||||
(
|
||||
"HRE",
|
||||
"Heavy rare earth elements (gadolinium, terbium, dysprosium, holmium, erbium, thulium, ytterbium, lutetium, yttrium, scandium)",
|
||||
),
|
||||
("IRN", "Iron"),
|
||||
(
|
||||
"LRE",
|
||||
"Light rare earth elements (lanthanum, cerium, praseodymium, neodymium, promethium, samarium, europium)",
|
||||
),
|
||||
("LED", "Lead"),
|
||||
("LIT", "Lithium"),
|
||||
("MAN", "Manganese"),
|
||||
("MER", "Mercury"),
|
||||
("MOL", "Molybdenum"),
|
||||
("NIC", "Nickel"),
|
||||
("NIO", "Niobium"),
|
||||
(
|
||||
"PGM",
|
||||
"Platinum group metals (ruthenium, rhodium, palladium, osmium, iridium, and platinum)",
|
||||
),
|
||||
("RHE", "Rhenium"),
|
||||
("SIL", "Silicon"),
|
||||
("SIV", "Silver"),
|
||||
("TAN", "Tantalum"),
|
||||
("TEL", "Tellurium"),
|
||||
("THA", "Thallium"),
|
||||
("TIN", "Tin"),
|
||||
("TIT", "Titanium"),
|
||||
("TUN", "Tungsten"),
|
||||
("VAN", "Vanadium"),
|
||||
("ZNC", "Zinc"),
|
||||
("OTR", "Other"),
|
||||
],
|
||||
help_text="What mineral commodity is primarily mined in this project?",
|
||||
max_length=3,
|
||||
verbose_name="Primary mineral mined",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='name_of_territory_or_area',
|
||||
field=models.CharField(blank=True, max_length=512, verbose_name='Name of territory, area or place'),
|
||||
model_name="casestudy",
|
||||
name="name_of_territory_or_area",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
max_length=512,
|
||||
verbose_name="Name of territory, area or place",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems, etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest, etc.')], max_length=34, verbose_name='What kind of case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws, plans or programs of environmental conservation or territorial governance systems, etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest, etc.",
|
||||
),
|
||||
],
|
||||
max_length=34,
|
||||
verbose_name="What kind of case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons_other',
|
||||
field=models.CharField(blank=True, help_text='For negative impacts you need to focus on substantive impacts on vulnerable groups.', max_length=512, verbose_name='Other reason for negative case'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons_other",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="For negative impacts you need to focus on substantive impacts on vulnerable groups.",
|
||||
max_length=512,
|
||||
verbose_name="Other reason for negative case",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_socioenvironmental_impacts',
|
||||
field=models.TextField(blank=True, help_text='Provide a detailed description of the socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, land to have increased biodiversity as a result of the project, new protection of lands/waters, specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.', verbose_name='Describe the socio-environmental impacts (positive and negative):'),
|
||||
model_name="casestudy",
|
||||
name="negative_socioenvironmental_impacts",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Provide a detailed description of the socio-environmental impacts (please provide all relevant details, such as type of ecosystem and presence of any existing reserve in the area, land to have increased biodiversity as a result of the project, new protection of lands/waters, specific communities affected by the project, total geographic footprint of the project, and tenure system affected in the case of land grabs, kind of permits that were irregularly issued if this is the case.",
|
||||
verbose_name="Describe the socio-environmental impacts (positive and negative):",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='official_project_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any legal or official documents that relate to the project. Hold down Control, or Command on a Mac, to select more than one.', related_name='official_project_document_for', to='files.File', verbose_name='Official project documents'),
|
||||
model_name="casestudy",
|
||||
name="official_project_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any legal or official documents that relate to the project. Hold down Control, or Command on a Mac, to select more than one.",
|
||||
related_name="official_project_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Official project documents",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='other_documents',
|
||||
field=models.ManyToManyField(blank=True, help_text='Attach any other documents that relate to the project. Hold down Control, or Command on a Mac, to select more than one.', related_name='other_document_for', to='files.File', verbose_name='Other documents'),
|
||||
model_name="casestudy",
|
||||
name="other_documents",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="Attach any other documents that relate to the project. Hold down Control, or Command on a Mac, to select more than one.",
|
||||
related_name="other_document_for",
|
||||
to="files.File",
|
||||
verbose_name="Other documents",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='participation_mechanisms',
|
||||
field=models.TextField(blank=True, help_text='e.g. direct action, local referendums, legal cases, letters or petitions, etc.', verbose_name='What mechanisms of participation have been used?'),
|
||||
model_name="casestudy",
|
||||
name="participation_mechanisms",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="e.g. direct action, local referendums, legal cases, letters or petitions, etc.",
|
||||
verbose_name="What mechanisms of participation have been used?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='people_affected_other',
|
||||
field=models.TextField(blank=True, help_text='Please describe further the communities or identities present in the project area.', verbose_name='Communities or identities – further detail'),
|
||||
model_name="casestudy",
|
||||
name="people_affected_other",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Please describe further the communities or identities present in the project area.",
|
||||
verbose_name="Communities or identities – further detail",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='positive_case_type',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('CREP', 'Community project (co-)owned by individuals'), ('EACP', 'Community project owned by not-for-profit organizations and/or serving the public interest'), ('PSEP', 'Public/state (federal, state, municipal) project'), ('CORS', 'Reuse / recycling / circular economy project')], max_length=32, verbose_name='What kind of case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="positive_case_type",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("CREP", "Community project (co-)owned by individuals"),
|
||||
(
|
||||
"EACP",
|
||||
"Community project owned by not-for-profit organizations and/or serving the public interest",
|
||||
),
|
||||
("PSEP", "Public/state (federal, state, municipal) project"),
|
||||
("CORS", "Reuse / recycling / circular economy project"),
|
||||
],
|
||||
max_length=32,
|
||||
verbose_name="What kind of case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='project_owners',
|
||||
field=models.TextField(blank=True, help_text='List companies or organisations that own the project and/or facilities. Provide company numbers etc. if available. Separate with a new line.', verbose_name='Project and facility owners'),
|
||||
model_name="casestudy",
|
||||
name="project_owners",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="List companies or organisations that own the project and/or facilities. Provide company numbers etc. if available. Separate with a new line.",
|
||||
verbose_name="Project and facility owners",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='projected_production_of_commodities',
|
||||
field=models.CharField(blank=True, help_text='Describe the projected production of commodities per annum and overall.<br>For example, "40 million tonnes of iron ore per year", "200 million tonnes over 5 year life of mine"', max_length=256, verbose_name='Estimated production of key commodities'),
|
||||
model_name="casestudy",
|
||||
name="projected_production_of_commodities",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text='Describe the projected production of commodities per annum and overall.<br>For example, "40 million tonnes of iron ore per year", "200 million tonnes over 5 year life of mine"',
|
||||
max_length=256,
|
||||
verbose_name="Estimated production of key commodities",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='sector_of_economy',
|
||||
field=models.CharField(choices=[('RN', 'Renewable energy generation project'), ('PG', 'Energy networks'), ('ST', 'Energy storage facilities'), ('SM', 'Mining related to the renewable energy economy'), ('MA', 'Manufacturing and/or processing of equipment')], max_length=3, verbose_name='Sector of the renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="sector_of_economy",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("RN", "Renewable energy generation project"),
|
||||
("PG", "Energy networks"),
|
||||
("ST", "Energy storage facilities"),
|
||||
("SM", "Mining related to the renewable energy economy"),
|
||||
("MA", "Manufacturing and/or processing of equipment"),
|
||||
],
|
||||
max_length=3,
|
||||
verbose_name="Sector of the renewable energy economy",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='shapefiles',
|
||||
field=models.ManyToManyField(blank=True, help_text='If you have territory that you would like to show in relation to this project i.e. area(s) of land or water affected by the project, or maybe the limits of the land within which a project is taking place or the sites of particular objects of importance. ESRI Shapefiles are a popular file type: they comprise a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx. Hold down Control, or Command on a Mac, to select more than one. You may have data as GeoPackage (gpkg), GeoJSON, KML, GML, etc. or have data in PostGIS or another spatial database management system already. Let us know (database@ojuso.org) if you have other file types or need help and we can work out how to import it.', related_name='shapefile_for', to='files.File', verbose_name='Geographic data'),
|
||||
model_name="casestudy",
|
||||
name="shapefiles",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
help_text="If you have territory that you would like to show in relation to this project i.e. area(s) of land or water affected by the project, or maybe the limits of the land within which a project is taking place or the sites of particular objects of importance. ESRI Shapefiles are a popular file type: they comprise a set of 3 or more (often 5-6) files with file extensions like .cpg, .dbf, .prj, .qpj, .shp, .shx. Hold down Control, or Command on a Mac, to select more than one. You may have data as GeoPackage (gpkg), GeoJSON, KML, GML, etc. or have data in PostGIS or another spatial database management system already. Let us know (database@ojuso.org) if you have other file types or need help and we can work out how to import it.",
|
||||
related_name="shapefile_for",
|
||||
to="files.File",
|
||||
verbose_name="Geographic data",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='start_year',
|
||||
field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], help_text='Select the year project construction began. If the project is not yet in construction, select the assumed start year as detailed in company information or media.', null=True, verbose_name='Construction start year'),
|
||||
model_name="casestudy",
|
||||
name="start_year",
|
||||
field=models.IntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(1979, 1979),
|
||||
(1980, 1980),
|
||||
(1981, 1981),
|
||||
(1982, 1982),
|
||||
(1983, 1983),
|
||||
(1984, 1984),
|
||||
(1985, 1985),
|
||||
(1986, 1986),
|
||||
(1987, 1987),
|
||||
(1988, 1988),
|
||||
(1989, 1989),
|
||||
(1990, 1990),
|
||||
(1991, 1991),
|
||||
(1992, 1992),
|
||||
(1993, 1993),
|
||||
(1994, 1994),
|
||||
(1995, 1995),
|
||||
(1996, 1996),
|
||||
(1997, 1997),
|
||||
(1998, 1998),
|
||||
(1999, 1999),
|
||||
(2000, 2000),
|
||||
(2001, 2001),
|
||||
(2002, 2002),
|
||||
(2003, 2003),
|
||||
(2004, 2004),
|
||||
(2005, 2005),
|
||||
(2006, 2006),
|
||||
(2007, 2007),
|
||||
(2008, 2008),
|
||||
(2009, 2009),
|
||||
(2010, 2010),
|
||||
(2011, 2011),
|
||||
(2012, 2012),
|
||||
(2013, 2013),
|
||||
(2014, 2014),
|
||||
(2015, 2015),
|
||||
(2016, 2016),
|
||||
(2017, 2017),
|
||||
(2018, 2018),
|
||||
(2019, 2019),
|
||||
(2020, 2020),
|
||||
(2021, 2021),
|
||||
(2022, 2022),
|
||||
(2023, 2023),
|
||||
(2024, 2024),
|
||||
(2025, 2025),
|
||||
(2026, 2026),
|
||||
(2027, 2027),
|
||||
(2028, 2028),
|
||||
(2029, 2029),
|
||||
(2030, 2030),
|
||||
(2031, 2031),
|
||||
(2032, 2032),
|
||||
(2033, 2033),
|
||||
(2034, 2034),
|
||||
(2035, 2035),
|
||||
(2036, 2036),
|
||||
(2037, 2037),
|
||||
(2038, 2038),
|
||||
(2039, 2039),
|
||||
(2040, 2040),
|
||||
(2041, 2041),
|
||||
(2042, 2042),
|
||||
(2043, 2043),
|
||||
(2044, 2044),
|
||||
(2045, 2045),
|
||||
(2046, 2046),
|
||||
(2047, 2047),
|
||||
(2048, 2048),
|
||||
(2049, 2049),
|
||||
(2050, 2050),
|
||||
(2051, 2051),
|
||||
(2052, 2052),
|
||||
(2053, 2053),
|
||||
(2054, 2054),
|
||||
(2055, 2055),
|
||||
(2056, 2056),
|
||||
(2057, 2057),
|
||||
(2058, 2058),
|
||||
(2059, 2059),
|
||||
],
|
||||
help_text="Select the year project construction began. If the project is not yet in construction, select the assumed start year as detailed in company information or media.",
|
||||
null=True,
|
||||
verbose_name="Construction start year",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='synopsis',
|
||||
field=models.TextField(help_text='Briefly summarise the project. This will be displayed at the top of the case study page. (Maximum 500 chars)', verbose_name='Project synopsis'),
|
||||
model_name="casestudy",
|
||||
name="synopsis",
|
||||
field=models.TextField(
|
||||
help_text="Briefly summarise the project. This will be displayed at the top of the case study page. (Maximum 500 chars)",
|
||||
verbose_name="Project synopsis",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. freshwater, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat Soil)'), ('URBAN', 'Urban')], max_length=56, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. freshwater, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
max_length=56,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='wants_conversation_with_ojuso',
|
||||
field=models.BooleanField(default=True, help_text='This would be a conversation about challenging or engaging related developers, companies and investors.', verbose_name='Would you like to have a conversation with the <b>ojuso</b> team?'),
|
||||
model_name="casestudy",
|
||||
name="wants_conversation_with_ojuso",
|
||||
field=models.BooleanField(
|
||||
default=True,
|
||||
help_text="This would be a conversation about challenging or engaging related developers, companies and investors.",
|
||||
verbose_name="Would you like to have a conversation with the <b>ojuso</b> team?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='when_did_organising_start',
|
||||
field=models.CharField(blank=True, help_text='Before the project started? During project implementation? After project implementation? Describe in your own words.', max_length=512, verbose_name='When did local organising efforts begin?'),
|
||||
model_name="casestudy",
|
||||
name="when_did_organising_start",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="Before the project started? During project implementation? After project implementation? Describe in your own words.",
|
||||
max_length=512,
|
||||
verbose_name="When did local organising efforts begin?",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,49 +6,192 @@ import multiselectfield.db.fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0078_latest_form_changes'),
|
||||
]
|
||||
dependencies = [("map", "0078_latest_form_changes")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='community_voices',
|
||||
field=models.TextField(blank=True, help_text='Please add any direct quotes from members of the community that relate to this project.', verbose_name='Community Voices'),
|
||||
model_name="casestudy",
|
||||
name="community_voices",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="Please add any direct quotes from members of the community that relate to this project.",
|
||||
verbose_name="Community Voices",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='generation_technology',
|
||||
field=models.CharField(blank=True, choices=[('BIO', 'Bio-energy'), ('GEOT', 'Geothermal electricity'), ('Hydro', (('uHYD', 'Micro hydro (<100kW)'), ('SHYD', 'Small-scale hydro (100kW-1MW)'), ('MHYD', 'Medium-scale hydro (1-30MW)'), ('LHYD', 'Large-scale hydro (>30MW - often not considered renewable)'))), ('Marine', (('WAVE', 'Wave'), ('TSTR', 'Tidal stream'), ('TBAR', 'Tidal barrage/lagoon'), ('TOTH', 'Other'))), ('Solar', (('SSPV', 'Small-scale photovoltaic (<500kW)'), ('LSPV', 'Large-scale photovoltaic (>500kW)'), ('CSP', 'Solar power tower'), ('PARA', 'Parabolic trough (open or enclosed)'), ('FRES', 'Fresnel reflector'), ('STIR', 'Dish Stirling'))), ('Wind', (('SSWE', 'Small-scale wind (<500kW)'), ('LSWE', 'Large-scale wind (>500kW)'))), ('OTHR', 'Other')], help_text='Please select the type of renewable energy generation that most applies to this case study.', max_length=4, verbose_name='Generation technology'),
|
||||
model_name="casestudy",
|
||||
name="generation_technology",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("BIO", "Bio-energy"),
|
||||
("GEOT", "Geothermal electricity"),
|
||||
(
|
||||
"Hydro",
|
||||
(
|
||||
("uHYD", "Micro hydro (<100kW)"),
|
||||
("SHYD", "Small-scale hydro (100kW-1MW)"),
|
||||
("MHYD", "Medium-scale hydro (1-30MW)"),
|
||||
(
|
||||
"LHYD",
|
||||
"Large-scale hydro (>30MW - often not considered renewable)",
|
||||
),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Marine",
|
||||
(
|
||||
("WAVE", "Wave"),
|
||||
("TSTR", "Tidal stream"),
|
||||
("TBAR", "Tidal barrage/lagoon"),
|
||||
("TOTH", "Other"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Solar",
|
||||
(
|
||||
("SSPV", "Small-scale photovoltaic (<500kW)"),
|
||||
("LSPV", "Large-scale photovoltaic (>500kW)"),
|
||||
("CSP", "Solar power tower"),
|
||||
("PARA", "Parabolic trough (open or enclosed)"),
|
||||
("FRES", "Fresnel reflector"),
|
||||
("STIR", "Dish Stirling"),
|
||||
),
|
||||
),
|
||||
(
|
||||
"Wind",
|
||||
(
|
||||
("SSWE", "Small-scale wind (<500kW)"),
|
||||
("LSWE", "Large-scale wind (>500kW)"),
|
||||
),
|
||||
),
|
||||
("OTHR", "Other"),
|
||||
],
|
||||
help_text="Please select the type of renewable energy generation that most applies to this case study.",
|
||||
max_length=4,
|
||||
verbose_name="Generation technology",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_factors',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('LAND', 'Land use'), ('LABOR', 'Labor rights'), ('ENVIRO', 'Environmental factors'), ('LIFECYCLE', 'Lifecycle management'), ('OWN', 'Ownership'), ('OTHER', 'Other(s)')], max_length=128, verbose_name='Please choose the factors that make this case remarkable, in a positive or negative way.'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_factors",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("LAND", "Land use"),
|
||||
("LABOR", "Labor rights"),
|
||||
("ENVIRO", "Environmental factors"),
|
||||
("LIFECYCLE", "Lifecycle management"),
|
||||
("OWN", "Ownership"),
|
||||
("OTHER", "Other(s)"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="Please choose the factors that make this case remarkable, in a positive or negative way.",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='manufacturing_related_tech',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('PV', 'Solar PV'), ('CSP', 'Concentrated solar power (CSP)'), ('WIND', 'Wind power'), ('HYDRO', 'Hydropower'), ('GEO', 'Geothermal'), ('TRANSMIT', 'Electrical power transmission infrastructure'), ('STORE', 'Energy storage'), ('HEAT', 'Heat networks'), ('OTHER', 'Other'), ('IDK', 'Unknown')], max_length=128, verbose_name='What technology is this case related to?'),
|
||||
model_name="casestudy",
|
||||
name="manufacturing_related_tech",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("PV", "Solar PV"),
|
||||
("CSP", "Concentrated solar power (CSP)"),
|
||||
("WIND", "Wind power"),
|
||||
("HYDRO", "Hydropower"),
|
||||
("GEO", "Geothermal"),
|
||||
("TRANSMIT", "Electrical power transmission infrastructure"),
|
||||
("STORE", "Energy storage"),
|
||||
("HEAT", "Heat networks"),
|
||||
("OTHER", "Other"),
|
||||
("IDK", "Unknown"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="What technology is this case related to?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='name_of_territory_or_area',
|
||||
field=models.CharField(blank=True, max_length=512, verbose_name='Name of territory or area'),
|
||||
model_name="casestudy",
|
||||
name="name_of_territory_or_area",
|
||||
field=models.CharField(
|
||||
blank=True, max_length=512, verbose_name="Name of territory or area"
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='negative_case_reasons',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('VOLR', 'Violation of land rights'), ('VOHR', 'Violation of fundamental human rights, indigenous rights and/or other collective rights'), ('EIMP', 'Environmental impacts (severe impacts on ecosystems / violation of laws plans or programs of environmental conservation, etc.'), ('NCUL', 'Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)'), ('AGGR', 'Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.'), ('ALAB', 'Abusive labour practices'), ('CRUP', 'Corruption and/or irregular permitting or contracting, conflicts of interest, etc.')], max_length=34, verbose_name='What kind of case is this entry about?'),
|
||||
model_name="casestudy",
|
||||
name="negative_case_reasons",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("VOLR", "Violation of land rights"),
|
||||
(
|
||||
"VOHR",
|
||||
"Violation of fundamental human rights, indigenous rights and/or other collective rights",
|
||||
),
|
||||
(
|
||||
"EIMP",
|
||||
"Environmental impacts (severe impacts on ecosystems / violation of laws plans or programs of environmental conservation, etc.",
|
||||
),
|
||||
(
|
||||
"NCUL",
|
||||
"Negative cultural impacts (erosion/destruction of bio-cultural heritage, impacts on sacred land, etc.)",
|
||||
),
|
||||
(
|
||||
"AGGR",
|
||||
"Aggression/threats to community members opposed to the project, collaboration with organized crime, etc.",
|
||||
),
|
||||
("ALAB", "Abusive labour practices"),
|
||||
(
|
||||
"CRUP",
|
||||
"Corruption and/or irregular permitting or contracting, conflicts of interest, etc.",
|
||||
),
|
||||
],
|
||||
max_length=34,
|
||||
verbose_name="What kind of case is this entry about?",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='type_of_ecosystem',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('MARINE', 'Marine (e.g. ocean, sea)'), ('FRESH', 'Freshwater (e.g. river, lake)'), ('FOREST', 'Forest/jungle'), ('AGRI', 'Agricultural land'), ('GRASS', 'Grassland'), ('DESERT', 'Desert (tundra, ice or sand)'), ('WETLND', 'Wetland (marsh, mangrove, peat Soil)'), ('URBAN', 'Urban')], max_length=56, verbose_name='Type(s) of ecosystem'),
|
||||
model_name="casestudy",
|
||||
name="type_of_ecosystem",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("MARINE", "Marine (e.g. ocean, sea)"),
|
||||
("FRESH", "Freshwater (e.g. river, lake)"),
|
||||
("FOREST", "Forest/jungle"),
|
||||
("AGRI", "Agricultural land"),
|
||||
("GRASS", "Grassland"),
|
||||
("DESERT", "Desert (tundra, ice or sand)"),
|
||||
("WETLND", "Wetland (marsh, mangrove, peat Soil)"),
|
||||
("URBAN", "Urban"),
|
||||
],
|
||||
max_length=56,
|
||||
verbose_name="Type(s) of ecosystem",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='casestudy',
|
||||
name='use_in_energy_economy',
|
||||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('CPV', 'Concentrated solar power (CSP) tower'), ('EPT', 'Electrical power transmission/distribution infrastructure'), ('ESS', 'Energy storage'), ('GGM', 'Geothermal'), ('HGM', 'Hydropower'), ('HNT', 'Heat networks'), ('SPM', 'Solar photovoltaic'), ('STM', 'Solar thermal systems'), ('WTM', 'Wind power'), ('ESS', "Don't know"), ('OTR', 'Other')], max_length=128, verbose_name='Potential use in renewable energy economy'),
|
||||
model_name="casestudy",
|
||||
name="use_in_energy_economy",
|
||||
field=multiselectfield.db.fields.MultiSelectField(
|
||||
blank=True,
|
||||
choices=[
|
||||
("CPV", "Concentrated solar power (CSP) tower"),
|
||||
(
|
||||
"EPT",
|
||||
"Electrical power transmission/distribution infrastructure",
|
||||
),
|
||||
("ESS", "Energy storage"),
|
||||
("GGM", "Geothermal"),
|
||||
("HGM", "Hydropower"),
|
||||
("HNT", "Heat networks"),
|
||||
("SPM", "Solar photovoltaic"),
|
||||
("STM", "Solar thermal systems"),
|
||||
("WTM", "Wind power"),
|
||||
("ESS", "Don't know"),
|
||||
("OTR", "Other"),
|
||||
],
|
||||
max_length=128,
|
||||
verbose_name="Potential use in renewable energy economy",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user