Skip to content

Instantly share code, notes, and snippets.

View andreagrandi's full-sized avatar
🏠
Working from home... permanently!

Andrea Grandi andreagrandi

🏠
Working from home... permanently!
View GitHub Profile
Hi,
To be compliant with GDPR, I request a copy of all my personal data that is linked to the email address you used here ( mail@mail.com ) (article 15, right of access: https://www.dataprotection.ie/en/individuals/know-your-rights/right-access-information).
Then I would also like you to withdraw, all said data, once you sent it, from all your databases, to not use this data anymore. (article 17 and 19 https://www.dataprotection.ie/en/individuals/know-your-rights/right-erasure-articles-17-19-gdpr)
This includes all the designs I've uploaded on your site, and the reviews I've left.
If you're not the right person to do so, please forward this information to your DPO.
Have a lovely day,
@NotSqrt
NotSqrt / settings_test_snippet.py
Last active May 1, 2022 01:34 — forked from nealtodd/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@nealtodd
nealtodd / settings_test_snippet.py
Last active November 14, 2019 01:25
Skip migrations for a Django 1.7 test run
# If your test settings file doesn't import any other settings file
# then you can use the function directly:
def prevent_tests_migrate(db):
import django
from django.db import connections
from django.db.migrations.executor import MigrationExecutor
django.setup()
ma = MigrationExecutor(connections[db]).loader.migrated_apps
return dict(zip(ma, ['{a}.notmigrations'.format(a=a) for a in ma]))
This has moved to... https://github.com/jasoncartwright/recruiterdomains