Skip to content

Commit

Permalink
Revert "fix: slug now gets created separate to SlugField upon creation"
Browse files Browse the repository at this point in the history
This reverts commit 1868c53.
  • Loading branch information
Joliv3r committed Sep 22, 2024
1 parent e2927ac commit 8124d40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nablapps/events/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from django.core.exceptions import ValidationError
from django.db import IntegrityError, models
from django.urls import reverse
from django.utils.text import slugify

from nablapps.core.models import TimeStamped, WithPicture
from nablapps.jobs.models import Company
Expand Down Expand Up @@ -125,8 +124,6 @@ def get_short_name(self):
)

def save(self, *args, **kwargs):
if not self.slug:
self.slug = slugify(self.headline)
super().save(*args, **kwargs)
self.move_waiting_to_attending()

Expand Down

0 comments on commit 8124d40

Please sign in to comment.