Re: [Django] #9071: Can't disable "add" popup links in the admin

2017-04-07 Thread Django
#9071: Can't disable "add" popup links in the admin
---+---
 Reporter:  Jacob  |Owner:  Dario Ocles
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:  worksforme
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+---

Comment (by Tim Graham):

 Not every use case can have a `ModelAdmin` attribute. To keep complexity
 under control, I think it's better to avoid adding one where an
 alternative exists.

--
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/063.a02427aab3de4abf45c6888e53f27011%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2017-04-07 Thread Django
#9071: Can't disable "add" popup links in the admin
---+---
 Reporter:  Jacob  |Owner:  Dario Ocles
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:  worksforme
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+---

Comment (by Ryan Castner):

 I know this was closed due to inactivity and the ease of doing this, but I
 feel like the solution, while working and simple is not obvious and
 requires knowledge of the internals of how the admin works to figure out.

 A documented setting to attach to model admin like disable_add_related =
 ('field_name', ...) seems like it would be a better solution.

 The purpose of this is for non-technical admins who should have the
 ability to add a user but would be confused by the ability to add new
 users inline while modifying a page, likely if you are creating a new
 model with a foreign key to 'user' for instance, you don't want to be
 creating a new user at that time, so displaying the option can only serve
 to confuse the user

--
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/063.3c42b7189a3a966c803fdb635b56526f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2015-06-17 Thread Django
#9071: Can't disable "add" popup links in the admin
---+--
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:  worksforme
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+--
Changes (by claudep):

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


Comment:

 Closing as per last comment and lack of activity.

--
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/063.851223299562a61cc8963e5c9a94fa56%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2014-08-21 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by rhunwicks):

 For others that end up on this page as the result of a Google Search or
 similar, as described on http://stackoverflow.com/questions/10377642/how-
 to-use-can-add-related-in-django-admin, the full version of the "Using the
 `ModelAdmin.get_form hook`" comment is:

 {{{#!python
 class ProductAdmin(ModelAdmin):

 def get_form(self, request, obj=None, **kwargs):
 """
 Don't allow adding new Product Categories
 """
 form = super(ProductAdmin, self).get_form(request, obj, **kwargs)
 form.base_fields['category'].widget.can_add_related = False
 return form
 }}}

 Given the simplicity of this, do we still need this ticket?

-- 
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/063.0eda7a806779cfd25e79ef67290719b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2014-06-13 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by timo):

 * needs_better_patch:  0 => 1


Comment:

 Needs a patch that applies cleanly.

-- 
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/063.669b90764b0d765a31862203eb80c488%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2013-10-31 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by jaylett):

 * cc: james@… (added)


-- 
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/063.86414d19bca64e1b171f11e290b40f6f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #9071: Can't disable "add" popup links in the admin

2012-10-10 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by ivan_virabyan):

 * cc: ivan_virabyan (added)


-- 
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] #9071: Can't disable "add" popup links in the admin

2012-03-20 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by atkinsonr@…):

 At present this isn't possible in an InlineModelAdmin, however the patch
 in #17547 looks good as it is to BaseModelAdmin.

-- 
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] #9071: Can't disable "add" popup links in the admin

2012-01-28 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
 Reporter:  jacob  |Owner:  burzak
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  1.0
 Severity:  Normal |   Resolution:
 Keywords:  pyconuk| Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 #17547 is a duplicate and has a patch.

-- 
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] #9071: Can't disable "add" popup links in the admin

2011-07-12 Thread Django
#9071: Can't disable "add" popup links in the admin
---+---
   Reporter:  jacob|  Owner:  burzak
   Type:  New feature  | Status:  assigned
  Milestone:   |  Component:  contrib.admin
Version:  1.0  |   Severity:  Normal
 Resolution:   |   Keywords:  pyconuk
   Triage Stage:  Accepted |  Has patch:  1
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  1|
---+---

Comment (by SmileyChris):

 Note that it's actually possible to do this now. Since r13708, the related
 admin widget has a `can_add_related` attribute.

 Using the `ModelAdmin.get_form` hook, set this to `False`  for the
 field(s) you want to disable the plus for.

-- 
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] #9071: Can't disable "add" popup links in the admin

2011-06-09 Thread Django
#9071: Can't disable "add" popup links in the admin
---+---
   Reporter:  jacob|  Owner:  burzak
   Type:  New feature  | Status:  assigned
  Milestone:   |  Component:  contrib.admin
Version:  1.0  |   Severity:  Normal
 Resolution:   |   Keywords:  pyconuk
   Triage Stage:  Accepted |  Has patch:  1
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  1|
---+---
Changes (by julien):

 * ui_ux:   => 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 this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #9071: Can't disable "add" popup links in the admin

2011-05-05 Thread Django
#9071: Can't disable "add" popup links in the admin
---+---
   Reporter:  jacob|  Owner:  burzak
   Type:  New feature  | Status:  assigned
  Milestone:   |  Component:  contrib.admin
Version:  1.0  |   Severity:  Normal
 Resolution:   |   Keywords:  pyconuk
   Triage Stage:  Accepted |  Has patch:  1
Needs documentation:  0|Needs tests:  0
Patch needs improvement:  0|  Easy pickings:  0
---+---
Changes (by burzak):

 * needs_better_patch:  1 => 0


Comment:

 The patch had a little conflic, I updated the patch to apply to trunk.

-- 
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] #9071: Can't disable "add" popup links in the admin

2011-03-26 Thread Django
#9071: Can't disable "add" popup links in the admin
+---
   Reporter:  jacob |Owner:  burzak
 Status:  assigned  |Milestone:
  Component:  django.contrib.admin  |  Version:  1.0
 Resolution:| Keywords:  pyconuk
   Triage Stage:  Accepted  |Has patch:  1
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+---
Changes (by burzak):

 * status:  new => assigned
 * owner:  kratorius => burzak


Comment:

 I took the idea and I made a new patch. I added a test case that I hope it
 would be correct and well-done.

-- 
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] #9071: Can't disable "add" popup links in the admin

2009-07-16 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Comment (by floledermann):

 Btw. you can remove the plus sign by using css - this will not really
 disable the feature but hide it if you shoot for a more consistent user
 experience:

 {{{
 #add_id_<> {
 display: none;
 }
 }}}

 Best is to look up the id of the element in the admin pages' html source.

 If you dont't have an admin css already, you can put this snippet in a
 file - say css/admin.css - and add a Media class to your Admin class:

 {{{
 class Media:
 css = {
 'all': [settings.MEDIA_URL + 'css/admin.css']
 }
 }}}

-- 
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] #9071: Can't disable "add" popup links in the admin

2009-07-14 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by SmileyChris):

  * owner:  SmileyChris => kratorius
  * status:  assigned => new

Comment:

 (Sorry, didn't mean to accept the ticket)

-- 
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] #9071: Can't disable "add" popup links in the admin

2009-07-14 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  SmileyChris
Status:  assigned  | Milestone: 
 Component:  django.contrib.admin  |   Version:  1.0
Resolution:|  Keywords:  pyconuk
 Stage:  Accepted  | Has_patch:  1  
Needs_docs:  0 |   Needs_tests:  0  
Needs_better_patch:  0 |  
---+
Changes (by SmileyChris):

  * owner:  kratorius => SmileyChris
  * status:  new => assigned

Comment:

 Slightly related, I just uploaded a new patch to #1035

-- 
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] #9071: Can't disable "add" popup links in the admin

2009-01-15 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by jackymac):

  * needs_docs:  1 => 0

Comment:

 I've updated the patch so that it now applies to SVN-9751.  Also added
 some docs.  The option is still called "exclude_add."  I couldn't think of
 a better name for it.  *shrugs*

 I'd be awesome if this could be committed in time for 1.1.  Anything I can
 do to help make that happen?

-- 
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] #9071: Can't disable "add" popup links in the admin

2008-12-08 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  1 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Comment (by milan612):

 Hi,[[BR]]

 I tried it with latest version of trunk SVN-9218, but doesnt work for
 me[[BR]]

 Any suggestion ?[[BR]]

 Milan[[BR]]

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-11-23 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  1 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Comment (by vincent):

 It seems that if you don't have the permission to add objects of a
 particular type, the add popup link is still there, and there's an ugly
 Permission Denied page if you click on it.

 I tried with Group or User Permissions, and the problem is still there.

 There's an old (3 years old) ticket opened here :
 [http://code.djangoproject.com/ticket/1035]

 Another patch a little less old here :
 [http://code.djangoproject.com/ticket/2927]

 But I found no patch for the current version of django.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-10-22 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  1 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Comment (by fabionatali):

 Replying to [comment:5 mtredinnick]:
 > What's the use-case here? If you have permission to add the object, it's
 giving you a way to add it. If you don't have permission to add objects of
 that type, it shouldn't be showing the plus-sign, but I believe that's
 already the case.
 >
 > Saying that you can add it in one way, but not in another seems
 inconsistent.

 If you have a foreign key with a limit_choices_to filter, then in your
 admin you get a drop down menu with a selection of items. However, if you
 add a new item through the green plus link, you can actually circumvent
 this limit_choices_to filter. You can create a new object which doesn't
 agree with the limit_choices_to filter and it will be used in the foreign
 key field despite the filter.

 This could be a scenario where disabling the green plus link would make
 sense.

 My 2 cents.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-09-16 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  1 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Comment (by mtredinnick):

 What's the use-case here? If you have permission to add the object, it's
 giving you a way to add it. If you don't have permission to add objects of
 that type, it shouldn't be showing the plus-sign, but I believe that's
 already the case.

 Saying that you can add it in one way, but not in another seems
 inconsistent.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-09-16 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  1 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by kratorius):

  * needs_docs:  0 => 1

Comment:

 Woops, removed the print statement.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-09-16 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by adrian):

  * stage:  Unreviewed => Accepted

Comment:

 I like the idea but haven't tested the patch (note there's a {{{print}}}
 statement in the patch).

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-09-13 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Unreviewed| Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by kratorius):

  * has_patch:  0 => 1

Comment:

 Attached patch adds an {{{exclude_add}}} option (I'm not happy with the
 naming, any suggestion is welcome) that allows to specify which related
 fields shouldn't have the add image. Fields should be specified in a list,
 like {{{exclude_add = [ 'rel_field1', 'rel_field2' ]}}}.

 However, docs are missing since I'm not a native english-speaker, so it
 would be nice if someone else could do that.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9071: Can't disable "add" popup links in the admin

2008-09-13 Thread Django
#9071: Can't disable "add" popup links in the admin
---+
  Reporter:  jacob | Owner:  kratorius
Status:  new   | Milestone:   
 Component:  django.contrib.admin  |   Version:  1.0  
Resolution:|  Keywords:  pyconuk  
 Stage:  Unreviewed| Has_patch:  0
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by kratorius):

  * owner:  nobody => kratorius
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #9071: Can't disable "add" popup links in the admin

2008-09-13 Thread Django
#9071: Can't disable "add" popup links in the admin
--+-
 Reporter:  jacob |   Owner:  nobody
   Status:  new   |   Milestone:
Component:  django.contrib.admin  | Version:  1.0   
 Keywords:  pyconuk   |   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 There's no way to prevent the little green "plus" icons from appearing on
 related fields in the admin (well, other than removing the related object
 from the admin). It should be possible to prevent those from appearing --
 an admin option would make sense here.

-- 
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---