-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1405 from devinit/develop
Develop to master merge for cookie notice and other improvements
- Loading branch information
Showing
48 changed files
with
3,641 additions
and
2,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.2.25 on 2024-07-02 13:13 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='CookieConsentLogEntry', | ||
fields=[ | ||
('token', models.CharField(max_length=255, primary_key=True, serialize=False)), | ||
('anonymised_ip_address', models.GenericIPAddressField()), | ||
('first_seen', models.DateTimeField(auto_now_add=True)), | ||
('modified', models.DateTimeField(auto_now=True)), | ||
('url', models.URLField()), | ||
('user_agent', models.TextField()), | ||
('choice', models.CharField(max_length=255)), | ||
], | ||
options={ | ||
'verbose_name': 'Cookie Consent Log Entry', | ||
'verbose_name_plural': 'Cookie Consent Log Entries', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
from django.db import models | ||
from wagtail.snippets.models import register_snippet | ||
|
||
# Create your models here. | ||
|
||
@register_snippet | ||
class CookieConsentLogEntry(models.Model): | ||
token = models.CharField(max_length=255, primary_key=True) | ||
anonymised_ip_address = models.GenericIPAddressField() | ||
first_seen = models.DateTimeField(auto_now_add=True) | ||
modified = models.DateTimeField(auto_now=True) | ||
url = models.URLField() | ||
user_agent = models.TextField() | ||
choice = models.CharField(max_length=255) | ||
|
||
|
||
def __str__(self): | ||
return self.token or 'Unknown log entry' | ||
|
||
class Meta(): | ||
verbose_name = "Cookie Consent Log Entry" | ||
verbose_name_plural = "Cookie Consent Log Entries" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 3.2.25 on 2024-07-01 15:35 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailcore', '0083_workflowcontenttype'), | ||
('home', '0078_auto_20231117_1216'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='cookienotice', | ||
name='cookie_policy', | ||
), | ||
migrations.RemoveField( | ||
model_name='cookienotice', | ||
name='download_link_caption', | ||
), | ||
migrations.AddField( | ||
model_name='cookienotice', | ||
name='set_cookie_page', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailcore.page', verbose_name='Page'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
di_website/publications/migrations/0126_auto_20240417_1654.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.