I hereby claim:
- I am marksweb on github.
- I am markwalker (https://keybase.io/markwalker) on keybase.
- I have a public key ASBR5scDMn5FSCoMk5ovovTddzHzwsn_lnJQ8vs-amP6hgo
To claim this, I am signing this object:
| from uuid import uuid4 | |
| from django.db import models | |
| from django.utils.translation import gettext_lazy as _ | |
| class UUIDMixin(models.Model): | |
| """ | |
| Mixin for models contain a unique UUID | |
| """ |
| #!/bin/bash | |
| COLUMNS="`tput cols`" | |
| LINES="`tput lines`" | |
| BOLD=$(tput bold) | |
| NORMAL=$(tput sgr0) | |
| DOCKER_COMPOSE="docker compose" | |
| _requires() { |
| from django.apps import apps | |
| def create_model_fixture(model): | |
| """ | |
| This injects the model names as fixtures. | |
| eg def test_something(MyModel): | |
| will make the `MyModel` available in a test. | |
| """ |
| # myapp/conf.py | |
| from core.settings import Settings | |
| DEFAULTS = { | |
| 'TEMP_DIR': '/tmp/' | |
| } | |
| settings = Settings(DEFAULTS) |
| import os | |
| import re | |
| import sys | |
| from django.db.models import options | |
| import sentry_sdk | |
| from base.utils.sanitize import sanitize | |
| from sentry_sdk.integrations.celery import CeleryIntegration | |
| from sentry_sdk.integrations.django import DjangoIntegration |
| # pylint: disable=inconsistent-return-statements | |
| def sanitize(value, output_type): | |
| """ | |
| Handy wrapper function for individual sanitize functions. | |
| :param value: Input value to be sanitized | |
| :param output_type: Class of required output | |
| :type output_type: bool or int |
I hereby claim:
To claim this, I am signing this object: