Re: Issue with Tutorial pt 5 "Fixing the bug"

2017-01-24 Thread John Wall
017 08:22:28 John Wall wrote: > > > > > > > > class QuestionAdmin(admin.ModelAdmin): > > > fieldsets = [ > > > > and whoops: > > > class QuestionAdmin(admin.ModelAdmin): > > > > You have 2, sir. > > -- > > Melv

Issue with Tutorial pt 5 "Fixing the bug"

2017-01-23 Thread John Wall
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