python - Django Slug Generated URL Returning: 'No Fund matches the given query.' -
i trying use slug generate urls, wherever visit url 'page not found @ /funds/[slug_generated_value]' raised by: apps.funds.views.details no fund matches given query here models.py, generate fund_id using fund.name create acronym , add datetime value deadline minus hour, min, sec values: class fund(models.model): name = models.charfield(max_length=128, unique=true) description = models.textfield() duration = models.charfield(max_length=10) slug = models.slugfield(unique=true) def save(self, *args, **kwargs): self.slug = slugify(self.name) super(fund, self).save(*args, **kwargs) def __str__(self): return self.name class offeredfunds(models.model): fund_id = models.charfield(max_length=55, blank=true) fund_name = models.foreignkey(fund) deadline = models.datetimefield('deadline') slug = models.slugfield(unique=true) def save(self, *args, **kwargs): output = '' in self...