Skip to content

Commit

Permalink
- Defaulting uuids to uuid4
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Apr 6, 2022
1 parent 2ebc986 commit f0aa150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ def save(self, notify=False, *args, **kwargs):
recipients = get_notification_recipients(notice_type_label, resource=self)
send_notification(recipients, notice_type_label, {'resource': self})

# if not self.uuid or len(self.uuid) == 0 or callable(self.uuid):
# self.uuid = str(uuid4())
if not self.uuid or len(self.uuid) == 0 or callable(self.uuid):
self.uuid = str(uuid4())
super().save(*args, **kwargs)

# Update workflow permissions
Expand Down

0 comments on commit f0aa150

Please sign in to comment.