List Info

Thread: Limit number of edit_inline results in admin?




Limit number of edit_inline results in admin?
user name
2006-04-25 23:49:04
I have a model which will have a lot of related objects (one
type of
object).
It would be cool to be able to use edit_inline and just show
the last X
objects or something, rather than 40+ inline objects.

I see there is "max_num_in_admin", but that
stops the ability to add in
new ones once the limit is reached, which is not what is
wanted.

Is there something else I'm overlooking or is this an admin
limitation?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Limit number of edit_inline results in admin?
user name
2006-04-26 05:43:20
On 4/25/06, SmileyChris <smileychrisgmail.com> wrote:
> I have a model which will have a lot of related objects
(one type of
> object).
> It would be cool to be able to use edit_inline and just
show the last X
> objects or something, rather than 40+ inline objects.
>
> I see there is "max_num_in_admin", but that
stops the ability to add in
> new ones once the limit is reached, which is not what
is wanted.
>
> Is there something else I'm overlooking or is this an
admin limitation?

Hey Smiley,

That's an admin limitation -- there's no way to limit the
inline
related objects in the admin, because we've never had a
need for that.
It's either all or nothin'!

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )