Created
October 25, 2022 18:24
-
-
Save emoss08/6631d9a400582c51e523ccce85e113ec to your computer and use it in GitHub Desktop.
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
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