On Tuesday 24 January 2017 11:14:58 Tim Graham wrote:
> Correct, you shouldn't declare class QuestionAdmin(...) twice. What
> problem do you see if you combine those classes? It's unlikely
> related to your Python version.
>
> On Tuesday, January 24, 2017 at 10:45:50 AM UTC-5, John Wall wrote:
> >
Correct, you shouldn't declare class QuestionAdmin(...) twice. What problem
do you see if you combine those classes? It's unlikely related to your
Python version.
On Tuesday, January 24, 2017 at 10:45:50 AM UTC-5, John Wall wrote:
>
> I'm guessing you mean that I have to class calls for Question
I'm guessing you mean that I have to class calls for QuestionAdmin? I was
not able to get the code from the tutorial to work any other way. Might it
be some issue with my version of Python?
On Tuesday, January 24, 2017 at 6:18:40 AM UTC-5, Melvyn Sopacua wrote:
>
> On Monday 23 January 2017 08:2
On Monday 23 January 2017 08:22:28 John Wall wrote:
>
> class QuestionAdmin(admin.ModelAdmin):
> fieldsets = [
and whoops:
> class QuestionAdmin(admin.ModelAdmin):
You have 2, sir.
--
Melvyn Sopacua
--
You received this message because you are subscribed to the Google Groups
"Django use
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
5 matches
Mail list logo