Re: [Django] #18576: Missing module in import statement

2012-07-06 Thread Django
#18576: Missing module in import statement
---+
 Reporter:  jaaruiz@…  |Owner:  claudep
 Type:  Bug|   Status:  closed
Component:  Documentation  |  Version:  1.4
 Severity:  Normal |   Resolution:  fixed
 Keywords:  wrong example  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by Claude Paroz ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [4c417cc9ebd65595128b81cdddc9ea8293cbcbbe]:
 {{{
 #!CommitTicketReference repository=""
 revision="4c417cc9ebd65595128b81cdddc9ea8293cbcbbe"
 Fixed #18576 -- Added missing import in tutorial02

 Thanks jaaruiz at yahoo.com for the report.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #18576: Missing module in import statement

2012-07-06 Thread Django
#18576: Missing module in import statement
---+
 Reporter:  jaaruiz@…  |Owner:  claudep
 Type:  Bug|   Status:  assigned
Component:  Documentation  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords:  wrong example  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by claudep):

 * status:  new => assigned
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * owner:  nobody => claudep
 * needs_docs:   => 0
 * stage:  Unreviewed => Accepted


Old description:

> A necessary module is not being imported in one of the examples. The
> example is located at
> https://docs.djangoproject.com/en/dev/intro/tutorial02/
>
> The example code is as follows:
>
> from django.contrib import admin
> from polls.models import Poll
>
> class ChoiceInline(admin.StackedInline):
> model = Choice
> extra = 3
>
> class PollAdmin(admin.ModelAdmin):
> fieldsets = [
> (None,   {'fields': ['question']}),
> ('Date information', {'fields': ['pub_date'], 'classes':
> ['collapse']}),
> ]
> inlines = [ChoiceInline]
>
> admin.site.register(Poll, PollAdmin)
>

>

>
> The second line of the code should also import the `Choice' model as
> follows:
> from polls.models import Poll, Choice

New description:

 A necessary module is not being imported in one of the examples. The
 example is located at
 https://docs.djangoproject.com/en/dev/intro/tutorial02/

 The example code is as follows:
 {{{
 from django.contrib import admin
 from polls.models import Poll

 class ChoiceInline(admin.StackedInline):
 model = Choice
 extra = 3

 class PollAdmin(admin.ModelAdmin):
 fieldsets = [
 (None,   {'fields': ['question']}),
 ('Date information', {'fields': ['pub_date'], 'classes':
 ['collapse']}),
 ]
 inlines = [ChoiceInline]

 admin.site.register(Poll, PollAdmin)
 }}}


 The second line of the code should also import the `Choice' model as
 follows:
 from polls.models import Poll, Choice

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.