[Django-admin] Popup for inline model

2014-07-05 Thread Aeh. ABID
In the inline models when using TabularInline, is it possible to use a popup to add/edit an item when we have a number of fields that can't hold in the page without horizontal scrolling ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: [Django-admin] Popup for inline model

2014-07-06 Thread Aeh. ABID
sing > StackedInline instead: > > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.StackedInline > > StackedInline orders the fields vertically, so you won't have the > horizontal scrolling problem. > > Yours, > Russ Magee %-) > >

The green plus sign for plain old input text

2014-07-11 Thread Aeh. ABID
How can I append the green plus sign (like in the dropdown widget) to an input text so I can select item from poupup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Aeh. ABID
I Have a model AB that holds two foreign keys A_id and B_id. class AB(models.Model): A_id = models.ForeignKey('A') B_id = models.ForeignKey('B') field_1 = models.CharField(max_length=200, blank=True) field_2 = models.CharField(max_length=200, blank=True) When editing A o

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Aeh. ABID
i'm bit confused here, shouldn't ovverride delete() instead of save() ? and how to retrieve selected items ? On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id. > > class

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-14 Thread Aeh. ABID
Indeed introducing m2m relationship was just the solution for this case, now I have B form change with AB_B as Inlines tabular item. thanks a lot On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id.

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Aeh. ABID
In your def __unicode__ convert the current returned int to string : def __unicode__(self): # Python 3: def __str__(self): > return str(self.vm_id) > credit to https://janetalkscode.wordpress.com/2013/09/28/django-long-object-has-no-attribute-encode/comment-page-1/ On Monday, July 14, 2

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-16 Thread Aeh. ABID
This is not for my use case, it was about setting to null foreign key when selecting inline items to be deleted On Tuesday, July 15, 2014 1:38:07 PM UTC+1, ROHITH KUMAR Miryala wrote: > > > >> >> B-id=models.ForeignKey('B',on_delete=models.SET_NULL) >> > -- You received this message because you

Filter_horizontal, applying filter on the right box - chosen items

2015-01-04 Thread Aeh. ABID
I'm wondering if there is a standard way to add a javascript-based filter on the right box like the one in the left when having manytomany relation with filter_horizontal. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
When dropdown could hold a pretty long list which may slowdown the page load, how can I override the drop-down menu in the change-form to a "read-only input" that can be filled with value from popup window. -- You received this message because you are subscribed to the Google Groups "Django us

Re: admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
min%2F%23django.contrib.admin.ModelAdmin.raw_id_fields&sa=D&sntz=1&usg=AFQjCNGeFg4geueOcn3NGtKFN1NRYfpDyw> On Wednesday, June 25, 2014 6:11:27 AM UTC+1, Aeh. ABID wrote: > > When dropdown could hold a pretty long list which may slowdown the page > load, how can I overrid

Re: admin generated form, change dropdown with selction from popup menu

2014-06-24 Thread Aeh. ABID
Is there a way to display a field value other than id in the textbox On Wednesday, June 25, 2014 6:11:27 AM UTC+1, Aeh. ABID wrote: > > When dropdown could hold a pretty long list which may slowdown the page > load, how can I override the drop-down menu in the change-form to a >