Skip to content

Commit

Permalink
Fix city property in orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jul 10, 2024
1 parent e2e1b0c commit 9ccfcc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def save(self, *args, **kwargs):


class Organization(StatusModel, TimeStampedModel):
# TODO: add last ngo hub update
STATUS = Choices(
("draft", _("Draft")),
("pending", _("Pending approval")),
Expand All @@ -214,9 +215,7 @@ class Organization(StatusModel, TimeStampedModel):

name = models.CharField(_("NGO Name"), max_length=254, blank=True, default="")
county = models.CharField(_("County"), choices=COUNTY_CHOICES, max_length=50, blank=True, default="")
city = models.ForeignKey(
"City", on_delete=models.PROTECT, null=True, verbose_name=_("City"), blank=True, default=""
)
city = models.ForeignKey("City", verbose_name=_("City"), on_delete=models.PROTECT, null=True, blank=True)
address = models.CharField(_("Address"), max_length=254, blank=True, default="")
registration_number = models.CharField(_("Registration number"), max_length=20, blank=True, default="")

Expand Down

0 comments on commit 9ccfcc6

Please sign in to comment.