Skip to content

Instantly share code, notes, and snippets.

@emoss08
Created October 25, 2022 18:24
Show Gist options
  • Save emoss08/6631d9a400582c51e523ccce85e113ec to your computer and use it in GitHub Desktop.
Save emoss08/6631d9a400582c51e523ccce85e113ec to your computer and use it in GitHub Desktop.
from django.utils.translation import gettext_lazy as _ # Import this bad boy
class Organization(TimeStampedModel):
"""
Organization Model Fields
"""
name = models.CharField(_("Organization Name"), max_length=255, unique=True)
org_id = models.UUIDField(
_("Organization ID"),
default=uuid.uuid4,
editable=False,
unique=True,
)
description = models.TextField(_("Organization Description"), null=True, blank=True,
help_text=_("The description of the organization"))
profile_picture = models.ImageField(
_("Profile Picture"), upload_to="organizations/", null=True, blank=True
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment