Re: [Django] #16929: Document how to extend UserAdmin with extra profile information

2012-09-15 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:  fixed
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Tim Graham ):

 In [changeset:"18d88a169fecf7efa2fba2ba2867e7a37084c7fc"]:
 {{{
 #!CommitTicketReference repository=""
 revision="18d88a169fecf7efa2fba2ba2867e7a37084c7fc"
 [1.4.x] Fixed #16929 - Documented how to extend UserAdmin with UserProfile
 fields; thanks charettes for the draft example.

 Backport of 22242c510f84c53803afe2907649c892cb1b3d9a from master.
 }}}

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #16929: Document how to extend UserAdmin with extra profile information

2012-09-15 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:  fixed
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by Tim Graham ):

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


Comment:

 In [changeset:"22242c510f84c53803afe2907649c892cb1b3d9a"]:
 {{{
 #!CommitTicketReference repository=""
 revision="22242c510f84c53803afe2907649c892cb1b3d9a"
 Fixed #16929 - Documented how to extend UserAdmin with UserProfile fields;
 thanks charettes for the draft example.
 }}}

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #16929: Document how to extend UserAdmin with extra profile information

2012-09-10 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by timo):

 * cc: timograham@… (added)
 * has_patch:  0 => 1


-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #16929: Document how to extend UserAdmin with extra profile information

2012-01-16 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by gcc):

 Please can we add this to the documentation?

 A link to this ticket at https://docs.djangoproject.com/en/dev/topics/auth
 /#storing-additional-information-about-users would have saved me half an
 hour searching.

-- 
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] #16929: Document how to extend UserAdmin with extra profile information

2011-12-11 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by charettes):

 Replying to [comment:3 schinckel]:
 > One issue with this is that if you had two apps that both attempted to
 add something (like an inline) to the UserAdmin, only one of them (the
 last in INSTALLED_APPS?) would take.

 This might feel a bit hackish but you can do the following:
 {{{
 #!python
 #my_nth_app/admin.py

 from django.contrib import admin
 from django.contrib.auth.admin import UserAdmin
 from django.contrib.auth.models import User

 from my_nth_app.models import MyNthAppModel

 class OneOfMyNthAppInline(admin.TabularInline):
 model = MyNthAppModel
 fk_name = 'user'

 #hackish
 RegisteredUserAdmin = admin.site._registry.get(User)

 class MyNthAppUserAdmin(RegisteredUserAdmin):
 inlines = RegisteredUserAdmin.inlines + [OneOfMyNthAppInline]

 # Re-register UserAdmin
 admin.site.unregister(User)
 admin.site.register(User, MyNthAppUserAdmin)
 }}}

 I know tickets aren't the right place to provide such examples but since
 it's the only way (I'm aware of) to achieve what @schinckel was trying to
 do without coupling all the apps I think it was worth posting until a
 proper solution can be documented.

-- 
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] #16929: Document how to extend UserAdmin with extra profile information

2011-12-11 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by schinckel):

 One issue with this is that if you had two apps that both attempted to add
 something (like an inline) to the UserAdmin, only one of them (the last in
 INSTALLED_APPS?) would take.

-- 
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] #16929: Document how to extend UserAdmin with extra profile information (was: The form for AUTH_PROFILE_MODULE should extend the basic User admin page)

2011-10-05 Thread Django
#16929: Document how to extend UserAdmin with extra profile information
---+
 Reporter:  jasper@…   |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:
 Keywords:  auth, admin| Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by julien):

 * component:  contrib.auth => Documentation
 * stage:  Unreviewed => Accepted


Comment:

 Automatically extending `UserAdmin` would be a bit too magical. charettes
 has given a great example for how to properly extend `UserAdmin`. This
 would be a nice addition to the documentation.

-- 
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.