'Group' object has no attribute 'group'

2021-11-08 Thread Jaime Almeida
Hi everyone i have this error when use : registro.group.permissions.add(gp) inside a loop for. everything right Ok the permisssions has saved. but i have the error : 'Group' object has no attribute 'group'. i have not idea for this error. -- You received this message because you are subsc

App not Defined - Getting Started

2018-06-04 Thread Jaime Escobar
help me? Unhandled exception in thread started by .wrapper at 0x7feeeb74ab70> Traceback (most recent call last): File "/home/jaime/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper fn(*args, **kwargs) File "/home/jaime/.local/l

Re: template tag don't work ==

2016-06-09 Thread Ing. Jaime Sanchez
index=over.igc_master %} test {{ index }} {% if index == obj.pk %} mal {{ index }} {% else %} OK {{ index }} {% endif %} {% endwith %} {% ifequal obj.pk over.igc_master %} Test Jaime

template tag don't work ==

2016-06-09 Thread Ing. Jaime Sanchez
Help please!! I need do like this in django 1.9 template tag {% if model1.obj == model2.obj %} print ok {% else %} print not OK {% endif %} but don't work. someone help me?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Im stuck with my WSGI FIle on pythonanywhere.com

2016-01-01 Thread Jaime
Oh man! I spent a couple of hours on this. Absolutely ridiculous! Here is what it fixed for my mezzanine's project: # Remove any references to your home folder (this can break Mezzanine) while "." in sys.path: sys.path.remove(".") while "" in sys.path: sys.path.remove("") I am writing a

ForeignKeyAutocompleteAdmin

2011-08-29 Thread JAIME ANDRES
Hi, i'm starting with django. At this moment i need to make my form's foreign keys searchable, it seems that what works form me is the https://github.com/django-extensions/django-extensions using the ForeignKeyAutocompleteAdmin function. The best simple example i'd found is this: http://code.google

Re: RV: photos sexy

2010-02-26 Thread Jaime Casanova
os were good ;) -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL Asesoría y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Sick of defining urls

2009-12-03 Thread Jaime Buelta
ings in Django. You can control exactly the map of the website and all the parameters to the views, and make changes inside without affecting URLs. OK, regular expressions are awful. They always were and they always will be, but usually the expressions on the URLs are not very difficult and are sim

Re: efficiently deleting content based on how old it is

2009-10-20 Thread Jaime Buelta
When I had to do this kind of tasks, I've added a new management command and run it from the cron (or manually any time you need it, with params, etc). You can run it calling python manager.py miCommand parameters The official documentation is not very complete, which is rare, but there are some

Re: How to disable autoescape in django feeds?

2009-10-20 Thread Jaime Buelta
Use the filter 'safe' {{ variable | safe }} On Tue, Oct 20, 2009 at 8:31 AM, Alexey Moskvin wrote: > > Hi! > I use django feed framework to organize rss feeds for my website. > I need to put some hyperlinks to feed items, but al of them are > autoescaped ( "<" is replaced with "<" and so on). >

Re: Primary key defined by two foreignkeys?

2009-06-07 Thread Jaime Casanova
he column and you have exactly the same) and it seems could be used for simple operations like save() what about a pk implementation that uses unique_together? -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL Asesoría y desarrollo de sistemas Guayaquil - Ecuador

Re: multiple column primary key

2009-06-03 Thread Jaime Casanova
it can't be used. > fortunately, i don't use mysql ;) -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL Asesoría y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157 --~--~-~--~~~---~--~~ You received this message because

Re: multiple column primary key

2009-06-03 Thread Jaime Casanova
urrently support multiple column primary keys, see: > http://code.djangoproject.com/ticket/373 > good database design makes use very often of composite pk's so my best bet is to declare the models without a primary key and make my code decide if an UPDATE or an INSERT is needed?

multiple column primary key

2009-06-03 Thread Jaime Casanova
ation? for example when deciding if a save() should be an insert or an update? -- Atentamente, Jaime Casanova Soporte y capacitación de PostgreSQL Asesoría y desarrollo de sistemas Guayaquil - Ecuador Cel. +59387171157 --~--~-~--~~~---~--~~ You received this me

using tabs like in the admin forms

2008-03-09 Thread Jaime Casanova
Hi, There is any way to use tabs like the ones in the admin form in ordinary ones? -- regards, Jaime Casanova --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Searching in a foreign table field

2006-03-29 Thread Jaime G. Wong
search_fields = ('song__name', ), > > Hope that helps. > > > -- Jaime G. Wong Chacaltana E-Mail: [EMAIL PROTECTED] Web : http://jgwong.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Searching in a foreign table field

2006-03-28 Thread Jaime G. Wong
search_fields = ('song', ), ) ...but I get an exception. Exception Type: TypeError Exception Value:got unexpected keyword argument 'song__icontains' What am I doing wrong? -- Jaime G. Wong Chacaltana E-Mail