Re: [Django] #10939: Allow for dynamic registration of inlines into an admin model

2014-02-28 Thread Django
#10939: Allow for dynamic registration of inlines into an admin model
---+--
 Reporter:  zbyte64|Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  contrib.admin  |  Version:  1.4-rc-2
 Severity:  Normal |   Resolution:  invalid
 Keywords:  inlines| Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by mhcfaihD):

 * version:  1.0 => 1.4-rc-2
 * type:   => Uncategorized
 * severity:   => Normal
 * easy:   => 0
 * ui_ux:   => 0


Comment:

 http://www.andresramirezgaviria.com/file/#3il45>buy provigil
 provigil generic discount - provigil interactions

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.4ceafd6af0a2c56673f622949066dc46%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #10939: Allow for dynamic registration of inlines into an admin model

2009-08-06 Thread Django
#10939: Allow for dynamic registration of inlines into an admin model
---+
  Reporter:  zbyte64   | Owner:  nobody 
Status:  closed| Milestone: 
 Component:  django.contrib.admin  |   Version:  1.0
Resolution:  invalid   |  Keywords:  inlines
 Stage:  Unreviewed| Has_patch:  0  
Needs_docs:  0 |   Needs_tests:  0  
Needs_better_patch:  0 |  
---+
Changes (by Alex):

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

Comment:

 Closing as invalid since it's still possiblem either my monkey patch or by
 unregister, alter, reregister.

-- 
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] #10939: Allow for dynamic registration of inlines into an admin model

2009-05-01 Thread Django
#10939: Allow for dynamic registration of inlines into an admin model
---+
  Reporter:  zbyte64   | Owner:  nobody 
Status:  new   | Milestone: 
 Component:  django.contrib.admin  |   Version:  1.0
Resolution:|  Keywords:  inlines
 Stage:  Unreviewed| Has_patch:  0  
Needs_docs:  0 |   Needs_tests:  0  
Needs_better_patch:  0 |  
---+
Comment (by zbyte64):

 Only works if inlines is a list, no?

 {{{
 admin.site.unregister(FlatPageAdmin)
 FlatPageAdmin.inlines = list(FlatPageAdmin.inlines)
 FlatPageAdmin.inlines += [FlatPageAttachment]
 admin.site.register(FlatPage, FlatPageAdmin)
 }}}

 I suppose I didn't want 4 lines of code for something that used to be so
 easy :/

-- 
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] #10939: Allow for dynamic registration of inlines into an admin model

2009-04-28 Thread Django
#10939: Allow for dynamic registration of inlines into an admin model
---+
  Reporter:  zbyte64   | Owner:  nobody 
Status:  new   | Milestone: 
 Component:  django.contrib.admin  |   Version:  1.0
Resolution:|  Keywords:  inlines
 Stage:  Unreviewed| Has_patch:  0  
Needs_docs:  0 |   Needs_tests:  0  
Needs_better_patch:  0 |  
---+
Changes (by dc):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 You can use:
 {{{
 admin.site.unregister(FlatPageAdmin)
 FlatPageAdmin.inlines += [FlatPageAttachment]
 admin.site.register(FlatPage, FlatPageAdmin)
 }}}

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



[Django] #10939: Allow for dynamic registration of inlines into an admin model

2009-04-27 Thread Django
#10939: Allow for dynamic registration of inlines into an admin model
--+-
 Reporter:  zbyte64   |   Owner:  nobody
   Status:  new   |   Milestone:
Component:  django.contrib.admin  | Version:  1.0   
 Keywords:  inlines   |   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 It used to be (django 0.96) you could arbitrarily add inlines into an
 admin model:


 {{{
 from django.db import models
 from django.contrib.models import FlatPage

 class FlatPageAttachment(models.Model):
 flatpage = models.ForeignKey(FlatPage, edit_inline=True)
 attachment = models.FileField(upload_to="flatpages")

 }}}

 Now this is not possible. You could try to import the FlatPage admin and
 attach an admin inline, but this will not work. The reason for this is
 that when the Admin model is registered into the admin site, it goes
 through and populates inline_instances. It is true you could unregister
 and re-register, but what if another app also wanted to add an inline? If
 that was the case then only one would get its inline registered.

 Perhaps a better alternative is to add a method to ModelAdmin called
 "register_inline". It would behave something like the following:

 {{{
 def register_inline(self, inline_class):
 inline_instance = inline_class(self.model, self.admin_site)
 self.inline_instances.append(inline_instance)
 }}}

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