Skip to content

Commit

Permalink
Merge pull request #56 from certego/develop
Browse files Browse the repository at this point in the history
0.7.2
  • Loading branch information
0ssigeno authored Oct 26, 2023
2 parents 0db0704 + 36076aa commit 4f2483c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions certego_saas/apps/notifications/migrations/0004_for_user_blank.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("certego_saas_notifications", "0003_for_user"),
]

operations = [
migrations.AlterField(
model_name="notification",
name="for_user",
field=models.ForeignKey(
settings.AUTH_USER_MODEL,
related_name="notifications",
help_text="If the field is empty, the notification is for everyone; otherwise only for the specified user",
null=True,
blank=True,
on_delete=models.CASCADE,
),
),
]
1 change: 1 addition & 0 deletions certego_saas/apps/notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Notification(TimestampedModel, AppSpecificModel):
help_text="If the field is empty, the notification is for everyone; otherwise only for the specified user",
null=True,
on_delete=models.CASCADE,
blank=True,
)

def is_read_by_user(self, user) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion certego_saas/apps/organization/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create(cls, name: str, owner: "User"):

org = cls.objects.create(name=name)
membership = Membership.objects.create(
user=owner, organization=org, is_owner=True
user=owner, organization=org, is_owner=True, is_admin=True
)
org.members.add(membership)
org.save()
Expand Down
2 changes: 1 addition & 1 deletion certego_saas/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.7.1"
VERSION = "0.7.2"

0 comments on commit 4f2483c

Please sign in to comment.