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
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 %-)
>
>
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
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
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
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.
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
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
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
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
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
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
>
12 matches
Mail list logo