e save button on the admin form ? or should I
use a second model
attribute and hide it on the form to keep the previous state ? is there a
"Django" way to do this ?
It's my first post, be gentle :P
Thanks !
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien
ost to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Nicolas Emiliani
Lo unico
e (lat,long) that belongs to the user position yo can then ask for a
radius in blocks, meters o whatever.
So, now you can get the surface of a circle and with some basic math you go
through your db checking if any artist
are inside the limit of that circle.
> Thanks so much!
>
> JJ
&g
Hi!
I'm trying to override the AdminFileWidget with no success. The idea is to
get a thumbnail
next to the uploaded files in a tabular view of the admin site. I did the
following :
class AdminImageWidget(AdminFileWidget):
def render(self, name, value, attrs=None):
--
Nicolas Emilian
3
fieldsets = [
(None, {
'fields' : [
('image','description','name','height','width'),
]
}
),
]
But the widget still shows itself as the AdminFileWidget, A
I know if he
is republishing or he modified some other field that has nothing to do with
that attribute ? I would be
republishing only if it's previous state was not published. But how can I
acces that previous state ?
Sounds waky :P
> On Sun, Jul 15, 2012 at 1:49 AM, Nicolas Emiliani
.)
>
>
Yes, you are right, but you are clearing the date, the thing
is that I don't want to clear it. That's why I thought of having
an attribute in the model that does not render in the form,
that would allow me to keep the previous state unchanged
and use that in my logic.
>
because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/pI8qXk50AaEJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this gro
On Sunday, July 15, 2012 6:16:42 PM UTC-3, Nicolas Emiliani wrote:
>
> Crap, hit the send key, there it goes. Sorry.
>
>
> Hi!
>>
>> I'm trying to override the AdminFileWidget with no success. The idea is
>> to get a thumbnail
>> next to the uploaded
Hi,
so.. I have a TabularInline admin view that displays '+ Add another' and I
would
like to remove it, like can_delete = False but for the add option. sadly
can_add
doesn't exist, so how do I achieve this ?
Thanks!
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe
ps.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received
oups.google.com/d/msg/django-users/-/NM39pkUyvG4J.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/gro
ail to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es
o unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You receiv
eAdminForm gets called
after
the constructor for HomeAdmin, so all the added fields are not there yet
when
HomeAdmin.__init__ is called.
Is what I'm trying do ok ?, Is there any way to fix this ?
Thanks dudes,
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien f
On Sun, Aug 5, 2012 at 5:40 PM, Melvyn Sopacua wrote:
> On 5-8-2012 20:16, Nicolas Emiliani wrote:
> > Hi, I've been struggling with dynamic forms and until now I'm loosing the
> > battle :S
>
> > So, now I want the HomeAdmin to render all this stuff into the f
an relate each HomeAttributeType to what they should
render to.
Since I have a variable number of HomeAttributeTypes, I need to set a
variable number of
hidden fields in the form. I was reading about FormSets but I can't find
the way to add one
to the ModelForm that the HomeAdmin is using.
On Sun, Aug 5, 2012 at 9:08 PM, Melvyn Sopacua wrote:
> Hi,
>
> On 6-8-2012 0:09, Nicolas Emiliani wrote:
>
> > I have three Models,
> >
> > Home, HomeAttributeType and HomeAttributeValue. HomeAttributeValue has
> > an FK to HomeAttributeType and one to Home.
&
foo = ForeingKey(Foo)
value = DateField
Here I can store the value for the relationship when saving the Model in
the DB.
If anyone has a better solution, suggestion, comment or thinks this is
going
to make me rot in hell please let me know.
Thanks.
--
Nicolas Emiliani
Lo unico instantane
Hope it saves some headaches.
> --
> Nicolas Emiliani
>
> Lo unico instantaneo en la vida es el cafe, y es bien feo.
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message because you are subscribed to the Google Groups
"Djang
tle','code','is_active')
> model = Adversite.image_many.through
>
> Please help me.
>
>
Well, this is just a guess, but you are setting the model in the form as
the through attribute of an M2M relationship
and that might the problem, have you tried explic
what has been driving me nuts!
u'attrs': [ u'2'],
As you can see it only passes the id of the attribute, not the id and the
value. What I
need is something like
u'attrs': [ (u'2','500')],
Any ideas on how to fix this ?
Thanks!
--
Nicolas Em
d widget inheriting
> directly from MultiWidget?
> I think you would need to override the methods: __init__, render,
> decompress
>
Yes also,
>
> But I'm no expert ;-(
>
>
Well, you are closer than I am :)
Thanks for the help.
>
> On Sun, Aug 26, 2012 at 7:42 PM, Nic
le Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/dja
e queryset changes the
widget gets 'obsolete'.
Is this some cache issue ? is there any way to force the widget
construction each time i
access the form containing it ?
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message because y
On Mon, Aug 27, 2012 at 3:54 AM, Melvyn Sopacua wrote:
> On 27-8-2012 1:21, Nicolas Emiliani wrote:
>
> > The thing is that the GridWidget.__init__ method does not get executed
> > each time I access the form that contains it, so if the queryset changes
> the
>
web, there is a __LOT__ of info on this.
Vikas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email
ta:
> db_table = u'mailbox'
> verbose_name = _('Mailbox')
> verbose_name_plural = _('Mailboxes')
> ordering = ['localpart']
> unique_together = ('localpart', 'localdomainfk')
>
On Mon, Aug 27, 2012 at 10:51 AM, Axel Rau wrote:
>
> Am 27.08.2012 um 15:04 schrieb Nicolas Emiliani:
>
> >
> > Through JS, you need to implement a script that binds to the change event
> > and then changes the collapse css call for the specific div. You may wan
age because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group
To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Nicolas Emiliani
Lo unico
ngo-users/-/YvGlPmf_HtEJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl
= True
So now I can input for example:
5.000.000
but after saving it it shows
500
Any solutions besides doing some javascript tampering?
Thanks!
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message because you are subscribed to t
On Sat, Oct 6, 2012 at 4:41 PM, Nicolas Emiliani wrote:
> Hi,
>
> I'm implementing django-guardian within the admin site and I'm having the
> following issue.
> If I create a model instance through the admin panel and then try to
> modify it
> (even using the
ific group being able to change his own
objects permissions. It would be somewhat of field permission
over object permissions.
Any way to accomplish this ?
Thanks in advance.
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message becau
nsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message because you are subscribed to the Google Groups
&
it to create an AuditorProfile not even by
setting the agency
field on the form.
Any ideas what is going on? I'm clueless
Thanks!
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received this message because you are subscribed to the Google Groups
):
class VerificationAdminForm(forms.ModelForm):
class VerificationAdmin(admin.ModelAdmin):
form = VerificationAdminForm
model = Verification
fieldsets = [ ... ]
Any ideas would be greatly appreciated.
Thanks in advance.
--
Nicolas Emiliani
Lo unico
nly one profile class with an profile type attribute.
Nasty but it works.
>
> Thanks!
>
> --
> Nicolas Emiliani
>
> Lo unico instantaneo en la vida es el cafe, y es bien feo.
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
--
You received
to display.
I'm starting
to think that maybe using a many-to-many field with a custom widget might
do the job.
> On Thu, Oct 25, 2012 at 3:51 AM, Nicolas Emiliani wrote:
>
>> Hi,
>>
>> As the subject states, is there a way to display a model formset in a
>> Mod
ups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo.
ps://groups.google.com/d/msg/django-users/-/x4UAl7Mc-w8J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/g
web visit
> https://groups.google.com/d/msg/django-users/-/J0DJKVoy-wcJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://g
to present that and somehow, I do
not know how yet,
override the search method at the admin site.
Does it sound good?
Has anyone done this?
Is there another approach?
Any comments will be highly appreciated.
Thanks!
--
Nicolas Emiliani
Lo unico instantaneo en la vida es el cafe, y es bien feo
Hey guys!
Has anyone tried to run django + sqlite on a raspberry pi ? Any performance
issues ?
I'm about to start an app that provides a restful api and has to run on
RPI, it's going
to manage an automation service, so load is going to be pretty low.
Cheers.
--
Nicolas Emiliani
up and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://grou
46 matches
Mail list logo