017 08:22:28 John Wall wrote:
>
>
>
> >
>
> > class QuestionAdmin(admin.ModelAdmin):
>
> > fieldsets = [
>
>
>
> and whoops:
>
> > class QuestionAdmin(admin.ModelAdmin):
>
>
>
> You have 2, sir.
>
> --
>
> Melv
Hello all,
I am working through the Django tutorial. I've made it to "Fixing the bug"
within part 5, but am having issues. The tutorial shows the following lines:
def was_published_recently(self):
now = timezone.now()
return now - datetime.timedelta(days=1) <= self.pub_date <= now
to be
2 matches
Mail list logo