Closed Zerokami closed 6 years ago
I've ensured that existing Thread objects will have slugs by adding them in migrations/0004_thread_slug.py:
from djeddit.models import Thread
def genSlugs(apps, schema_editor):
for t in Thread.objects.all().iterator():
t.save()
@EatEmAll This is the code you updated. You removed
threadSlugPage
and made it intoslugPage
and removedif self.slug:
checks.What if there are old posts with no slug? I'm not sure if it's gonna break, but I want to be sure.