Re: REMOTE_USER authentication to 'Admin'?

2011-05-19 Thread Ramiro Morales
your custom backend in AUTHENTICATION_BACKENDS is a valid one considering the python module search path available under you Apache setup Change the strategy you use to really subclass from django.contrib.auth.backends.ModelBackend, etc. Regards, -- Ramiro Morales -- You received this mess

Re: Tutorial: "Customize the admin look and feel"

2011-05-11 Thread Ramiro Morales
dmin/base_site.html` from within the default Django admin template directory in the source code of Django itself into an `admin` subdirectory of whichever directory you're using in TEMPLATE_DIRS. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups

Re: Multiple databases - unmanaged models - get_absolute_url()

2011-04-29 Thread Ramiro Morales
for the proposed fix is welcome. -- Ramiro Morales 1. http://code.djangoproject.com/ticket/15610 -- 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

Re: How to register EmployeeAdmin using atributes in Person class

2011-04-22 Thread Ramiro Morales
the 1to1 relationship between Employee and Person. Also, see http://docs.djangoproject.com/en/dev/ref/models/fields/#onetoonefield http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-inheritance http://docs.djangoproject.com/en/dev/topics/db/models/#specifying-the-parent-link-field

Re: Why Django Model Filter Returns Model Object Instance Instead of QuerySet?

2011-04-21 Thread Ramiro Morales
ut haven't correctly described your initial problem. This doesn't make it easy to try to help you. Also, neither .count() nor .filter() raise ObjectDoesNotExist so that try/catch block isn´t necessary. .filter() returns and empty queryset if no model instance matches its criteria. M

Re: Django multiple databases router

2011-03-24 Thread Ramiro Morales
gs by yourself. One possibility would be to create a test suite that covers all your use cases of cross-DB relationships. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: How does localization work in Django?

2011-03-23 Thread Ramiro Morales
ment >        ImportError: No module named django.core > [/quote] It will be very hard to help you with such a broken paste of the traceback you get. What version of Django are you using? -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups &

Re: cannot change the year in the admin datepicker

2011-03-09 Thread Ramiro Morales
odd years to > notice this. There is already a [1]ticket for this. I've just tried the latest patch, it applies (with some fuzz) and works. Souyou can use that one with the current non-jQuery-based widget. Regards, -- Ramiro Morales 1. http://code.djangoproject.com/ticket/9388 -- You

Re: SQL generated for ManyToManyField is incorrect with Django 1.2.1

2011-03-06 Thread Ramiro Morales
gt; > Generated sql: > CREATE TABLE "books_book" ( >    "id" integer NOT NULL PRIMARY KEY, >    "publisher_id" integer NOT NULL, > ) What database engine are you using? What version of Django? -- Ramiro Morales -- You received this message because

Re: pymssql: Problem with Unicode string

2011-02-16 Thread Ramiro Morales
On Wed, Feb 16, 2011 at 8:46 AM, Orgil wrote: > Hello. > I can not get unicode string from MSSQL. > I have pymssql-1.0.2, freetds-0.82, ubuntu-10.10. It seems you have sent this message to the wrong mailing list. -- Ramiro Morales -- You received this message because you are subs

Re: problem with date and decimal changes between 1.1.1 and 1.2.4

2011-02-07 Thread Ramiro Morales
ion (1.2.4 with: I10N=True and LANGUAGE_CODE = 'nl'): > - Dates: 1 maart 2012 > - Decimals are comma separated Regards, -- Ramiro Morales 1. http://code.djangoproject.com/changeset/15405 -- You received this message because you are subscribed to the Google Groups "Django u

Re: Posible Django Admin BUG

2011-02-02 Thread Ramiro Morales
On Wed, Feb 2, 2011 at 1:08 PM, Ramiro Morales wrote: > On Wed, Feb 2, 2011 at 12:59 PM, Jorge Kleinerman (WindBack) > wrote: >> Thanks >> >> I will try to post it there > > I'd suggest to do some homework first: > > Create a clon of your application an

Re: Posible Django Admin BUG

2011-02-02 Thread Ramiro Morales
> Seems to be a DJANGO Admin BUG >> >> > I asked in freenode, django channel and they told me that it should be >> > a bug an I should report it >> >> > Thanks >> >> > Jorge > > -- > You received this message because you are subscribe

Re: weird behavior in select_related

2011-01-30 Thread Ramiro Morales
On Sun, Jan 30, 2011 at 7:27 AM, Miguel Araujo wrote: > I didn't know that, that's why it was happening. I didn't post my models, as > I wasn't sure that would help. Btw, it's documented behavior: http://docs.djangoproject.com/en/1.2/ref/models/querysets/#sel

Re: Localisation

2011-01-21 Thread Ramiro Morales
ts for the issues you identified. although some of them might have been already reported, you can search them in our Trac installation filtering by Component = Internationalization. Regards, -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups

Re: Overcoming Django 1.2.4's "no query string in the URL"?

2011-01-12 Thread Ramiro Morales
dea: http://chris.improbable.org/2010/12/23/custom-admin-filters-django-124/ -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe f

Re: ImproperlyConfigured: 'SentAdmin.fields' refers to field 'dateSent' that is missing from the form.

2011-01-02 Thread Ramiro Morales
delAdmin. Also: Are you using dateSent somethwere else in the dmin.py? Remove the admin.pyc file. -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups

Re: Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-02 Thread Ramiro Morales
been unable to point the exact reason and how to solve them. an additional, independent case would be of help. Thanks, -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Re: delivering streaming videos

2010-12-26 Thread Ramiro Morales
erver to rely on streaming out the video, and you said no :S >> >> Fail. > > no dude, you told me to use nginx for my task which doesn't work as i > explained... fail in understanding > Allf of the mailstream web server i.e. Apache, nginx and lighttpd have similar mech

Re: UTF-8 support in custom tags

2010-12-05 Thread Ramiro Morales
method and from template filters." So maybe you simply should make sure you return u"" instead of "" from your render() method ?: >> >  def render(self, context): >> >    context[self.variable] = self.nodelist.render(context) >> >    return &q

Re: UTF-8 support in custom tags

2010-12-04 Thread Ramiro Morales
ext)". > > Any ideas how to deal with it? The Unicode documentation has specific information about custom template elements: http://docs.djangoproject.com/en/1.2/ref/unicode/#templates -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups &quo

Re: problems with model inheritance if base class is not abstract

2010-11-20 Thread Ramiro Morales
on of the model name: >>> p = TestBase.objects.get(id=12) # If p is a TestB object, this will give the child class: >>> p.testb " The TestA model is inheriting that 'testb' accesor from TestBase to TestB and it is clashing with the identically named field. -- Ra

Re: Are multiple databases supported by the testing framework?

2010-11-14 Thread Ramiro Morales
; Is this supported? Did you find (and apply what is suggests) the relevant notes to the multi-DB functionality in the testing docs?: http://docs.djangoproject.com/en/1.2/topics/testing/#multi-database-support -- Ramiro Morales -- You received this message because you are subscribed to the Google

Re: Show DEBUG page to specific user group?

2010-11-12 Thread Ramiro Morales
ck: http://ericholscher.com/blog/2009/sep/5/debugging-django-production-revisited/ -- Ramiro Morales -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe fr

Re: IE9 and dev server errors

2010-09-18 Thread Ramiro Morales
d by the remote > host > > Not sure what is going on.  Any ideas? Does this cause any functional problem at all? Or simply. is that error message printed to the console? -- Ramiro Morales  |  http://rmorales.net -- You received this message because you are subscribed to the Google Groups

Re: Error loading MySQLdb module with virtualenv (Virtual Python Environment builder)

2010-09-18 Thread Ramiro Morales
rver) first and then move to WSGI. Or Don't skip the reading the great mod_wsgi docs step, particularly the topic about how to combine it with virtualenv: http://code.google.com/p/modwsgi/wiki/VirtualEnvironments -- Ramiro Morales  |  http://rmorales.net -- You received this message be

Re: Color in Console

2010-08-26 Thread Ramiro Morales
Some of the code proposed in discussions you find when googling color logging console, e.g. [1] * The integration-with-logging facilities provided by Fabulous[2]. HTH -- Ramiro Morales  |  http://rmorales.net 1. http://stackoverflow.com/questions/384076/how-can-i-make-the-python-logging-

Re: gettext on windows - not up to date documentation on django site

2010-08-22 Thread Ramiro Morales
orrectly) We will need more real technical details about what steps yo've performed so far and at what point things started to fail to be able to help you. Regards, -- Ramiro Morales  |  http://rmorales.net -- You received this message because you are subscribed to the Google Groups &

Re: debug=True changes behavior of admin "fields"

2010-08-20 Thread Ramiro Morales
The obvious next step was to see how to remove the offending validation code Karen described. Fortunately there is some duplicated code in that zone that can be factored out. This means the feature you are using could be officially added by removing code instead of adding it, plus tests and docume

Re: Can't build Django documentation

2010-08-14 Thread Ramiro Morales
o/whatsnext/#as-html-locally That's and outdated and misleading note. Thanks for pointing it. I' ve opened ticket 14111 to get rid of it. -- Ramiro Morales  |  http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Can't build Django documentation

2010-08-14 Thread Ramiro Morales
ple a bit the links between documents), see Django tickets [1]14033 and [2]14085. So you might prefer to use option 2 for now. -- Ramiro Morales  |  http://rmorales.net 1. http://code.djangoproject.com/ticket/14033 2. http://code.djangoproject.com/ticket/14085 -- You received thi

Re: can foreign key fields be empty?

2010-07-18 Thread Ramiro Morales
documentation from beginning to end once will help you a lot when beginning. It would be unfortunate to not take advantage of such a great body of documents. There are other projects where this is not possible because the docs are very basic. But this isn´t the case with Django. Regards, -- R

Re: db_schema support was broken by Debian upgrade: 'class Meta' got invalid attribute(s): db_schema

2010-07-04 Thread Ramiro Morales
s updated, you got a pristine Django 1.2.1 via the python django .deb package and that would explain what you are seeing. You can try to use the latest patch attached to ticket 6148 so you can help us with to test and enhance it. Warning: The patch, as every patch not merged in the official tre

Re: override base translations in your project

2010-05-17 Thread Ramiro Morales
has no effect, it is a comment to be read by humans and has no influence in the final compiled .mo message file. -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Problem_Inline_max_num

2010-05-10 Thread Ramiro Morales
odeltests/model_formsets/models.py?rev=13094#L363 Also FWIW, a) I don't think that's what the OP was reporting, 2) I agree with Javier regarding the readability of what the OP posted in English and even in Spanish. We are asking him to send a better report in the django-es list. -- Rami

Re: "No module named admin.site.root" on r13043

2010-04-28 Thread Ramiro Morales
e syntax used since 1.1: (r'^admin/', include(admin.site.urls)), Read the respective part #2 of the Django tutorials to compare them. Where did you get the # Uncomment the next line to enable the admin: (r'^admin/(.*)', include('admin.site.root')), fragment from

Re: unable to create en-gb for localisation

2010-04-22 Thread Ramiro Morales
may go wrong? Thanks Make sure you are creating a stub en-gb translation for Django. See the second note box ("Locale restrictions") here: http://docs.djangoproject.com/en/1.1/topics/i18n/localization/#topics-i18n-localization -- Ramiro Morales | http://rmorales.net -- You r

Re: Baffled by self.client.login(...) not working in unit tests

2010-04-19 Thread Ramiro Morales
ernet discussion pertaining to this. Can anybody help? >> > > My login code looks like this: >> >> > >                 login = self.client.login(username='homer', >> > > password='simpson') >> > >                 self.as

Re: How to change the look of the main admin site page?

2010-04-17 Thread Ramiro Morales
oject.com/en/1.1/intro/tutorial02/#customize-the-admin-index-page http://docs.djangoproject.com/en/1.1/ref/contrib/admin/#overriding-admin-templates -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Ramiro Morales
n idea for this year GSoC program http://code.djangoproject.com/wiki/SummerOfCode2010#Multipletimezonesupportfordatetimerepresentation So far, no student expressed interest in it, maybe we can propose it as a feature for 1.3 when the time comes. Regards, -- Ramiro Morales | http://rmorales.net -

Re: get_fieldname_display in templates

2010-04-08 Thread Ramiro Morales
  {{ item.name }} {{ item.get_category.display()}} >  {%endfor%} First, change get_category.display to get_category_display it is an obvious typo. Them drop the (). This is documented: http://docs.djangoproject.com/en/1.1/topics/templates/#templates http://docs.djangoproject.com/en/1.1/topics/temp

Re: Problem with admin actions and i18n

2010-04-06 Thread Ramiro Morales
s have problems with such differences with i18n lazy objects when > dealing with production server. Can anyone help to understand this problem? You don't tell us what version/SVN revision of Django you are using. The locations shown in the traceback don't match the ones in SVN tip as o

Re: syncdb error for models pointing to each other

2010-03-25 Thread Ramiro Morales
elf. I'm using > Postgresql. What am I missing? Are 2 models not allowed to point to each > other? Re-read the error message, it is correctly pointing the problem. You don't seem to have any model called Photo, at least no in the code you included in you email. -- Ramiro M

Re: Multiple Primary Keys

2010-03-17 Thread Ramiro Morales
t; in the model? I did use the inspectdb command to help me create the > model because some tables have more than 25 columns. Unfortunately it isn't supported. See: http://docs.djangoproject.com/en/1.1/faq/models/#do-django-models-support-multiple-column-primary-keys -- Ramiro Moral

Re: Django 1.0 admin - no "select all" checkbox

2010-02-27 Thread Ramiro Morales
sion 1.2. If you are following the docs make sure you are reading the correct ones form the Django release you are using (in the case of the docs published at the djangoproject.com site, look for a header at the top of the pages that link to docs of other releases). -- Ramiro Morales | http://

Re: python manage.py test --omit=bad_app_one,bad_app_two

2010-02-17 Thread Ramiro Morales
e I go hacking Django's core, is there a back-door (or a patch > or module out there) that I'm overlooking? I've been told that [1]nose has this ability. And there is the patch attached to ticket [2]8363. -- Ramiro Morales | http://rmorales.net 1. http://somethingaboutorange.c

Re: How to serialize objects that contain a foreign key object

2010-02-10 Thread Ramiro Morales
[2]'Django full serializers' by Matthew Flanagan. HTH -- Ramiro Morales | http://rmorales.net 1. http://code.djangoproject.com/ticket/12840 2. http://code.google.com/p/wadofstuff/wiki/DjangoFullSerializers -- You received this message because you are subscribed to the Google Groups

Re: Django Test Server and threading

2010-02-01 Thread Ramiro Morales
.start_new_thread(serv.serve_forever,()) > time.sleep(60) > ----- > > resulting in a "no such table: django_session" error? Are you using sqlite3? -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django u

Re: False negatives on model validation of CharField with choices

2010-01-29 Thread Ramiro Morales
ticket/12722. Sorry I didn't reply before, I had been offline. This has been already reported in ticket [1]12667. Please test the patch attached to it and report back your experiences. Regards, 1. http://code.djangoproject.com/ticket/12667 -- Ramiro Morales | http://rmorales.net -- You re

Re: Admin calendar popups on datefield suddenly missing

2010-01-21 Thread Ramiro Morales
ion? What do you get when you access it with your browser? -- Ramiro Morales | http://rmorales.net PS: Also, if you are using the development version it would be a good idea to get accustomed to read the changelog and/or follow the Django Trac timeline so you can anticipate, detect and sol

Re: Splitting tests.py

2010-01-18 Thread Ramiro Morales
et a traceback? No error but your tests aren't being run?, ... Try with SVN r12254 because the test infrastructure was refactored in r12255 and it still has some small rough edges. -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google

Re: Problems with mod_python and Django

2010-01-03 Thread Ramiro Morales
27;dummy.settings' (Is it on > sys.path? Does it have syntax errors?): No module named dummy > Seems like there is a __init_.py file missing in your dummy directory? -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups &q

Re: reverse drops the project from the url returned

2010-01-03 Thread Ramiro Morales
that point to this Django ticket: http://code.djangoproject.com/ticket/9435 Another suggestion: Ty dropping the project name from all the imports and view names when setting your mod_wsgi deployment, just make sure themodules containing your settings.py, urls.py and all your apps are in the python mo

Re: Django tutorial: TemplateDoesNotExist at /admin/

2010-01-03 Thread Ramiro Morales
/social', '/usr/lib/ > > I am using Ubuntu 9.10 please help :-\ > How have you installed Django?. Using a Ubuntu package (python-django) or did you perform an installation from source? Make sure you don't have more than one and possible incomplete installations. -- Ramiro Morale

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-02 Thread Ramiro Morales
On Sat, Jan 2, 2010 at 10:33 PM, dhruvg wrote: > > Could you elaborate? > The documentation indicates that complex expressions follow Python > exactly. I suspect you are using django 1.1.x and reading theDjango SVN trunk documentation. -- Ramiro Morales  |  http://rmorales.net --

Re: error haven't set the DATABASE_ENGINE setting

2009-12-30 Thread Ramiro Morales
goproject.com/en/dev/topics/install/#installing-official-release You are using Django 1.0.x launched almost 15 months ago and following the the documentation that describes the development version of Django as of now. Lookup and follow the correct document set. Regards, -- Ramiro Morales | h

Re: local variable 'delta' referenced before assignment

2009-12-29 Thread Ramiro Morales
ite friendly Python mailing list/IRC channel. -- Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from th

Re: Can't delete a User from within admin

2009-12-13 Thread Ramiro Morales
.db.models.fields.related.RelatedManager. > > I can delete the User from within the shell just fine with > user_instance.delete() I'd suggest to read the Django documentation about managers, in particular the sections about default managers, and how they (are not) used by the admin a

Re: Ordering over ManyToMany relationship omits records

2009-11-27 Thread Ramiro Morales
queries using SQL to see if the results you get are different from what you get when using the ORM. I say this because the last paragraph in the order_by() method description: http://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by-fields Regards, -- Ramiro Morales | http://rmoral

Re: unique_for_date

2009-11-04 Thread Ramiro Morales
On Wed, Nov 4, 2009 at 2:52 PM, David wrote: > > Hello > > I was wondering if unique_for_date is not working or if I am not > understanding how it is meant to be used. What version of Django are you using? -- Ramiro Morales | http

Re: using ORM Parent->child rendering inside a template

2009-10-27 Thread Ramiro Morales
h python and I can get the results by passing a dictionary > with everything to loop over it, but I'm sure there has to be an easier way > to do it > -- Ramiro Morales | http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you

Re: __unicode__(self) doesn't work

2009-10-12 Thread Ramiro Morales
ome Python material to familiarize yourself with indentation rules and class definitions. Regards, -- Ramiro Morales | http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: msgfmt error while attempting to compile po files

2009-09-21 Thread Ramiro Morales
You need to install the gettext package that includes (among others) the msgfmt utility from the GNU gettext suite. http://packages.ubuntu.com/search?searchon=contents&keywords=msgfmt&mode=exactfilename&suite=jaunty&arch=any Regards, -- Ramiro Morales | http://rmorales.net --~--~---

Re: Translating App Names

2009-09-20 Thread Ramiro Morales
w to work with patches (and please report back your experiences). At least one core developer thinks all this is something worth fixing in one swoop and the second problem isn´t worth fixing alone. I'm keeping the above mentioned ticket (and patch) up to date in the hope it is fixed ASA

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
ing a a single value). This new capability was added in Django 1.1 core as part of the URL namespacing changes and and is described both here: http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces and in the Django 1.1 release notes. HTH, -- Ramiro

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
nerate admin in urls.py : > > from django.conf.urls.defaults import * > from sites import admin_site > urlpatterns = patterns('', >   (r'^admin/', include(admin_site.urls)), > ) > > Although there are no registered mode

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
nelogout/), Change Password (http:// > 127.0.0.1:8000/admin/Nonepassword_change/), etc. (examples are from > index page). I am not sure whether it is mistake at my site or > somewhere else. We'll need to know what released version or SN revision of Django you are using to be able to he

Re: xgettext under osx

2009-09-02 Thread Ramiro Morales
t, msgmerge, msgfmt) available when running the different i18n-related django-admin.py commands (makemessages, compilemessages) -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: xgettext under osx

2009-09-02 Thread Ramiro Morales
herwise won't be able to find the xgettext binary. -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ 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

Re: how to make admin app use templates from app templates folder?

2009-09-01 Thread Ramiro Morales
der? AFAIK You can't. And it is described in the documentation: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model HTH -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this mes

Re: explanation of: {{ action.action_time|date:_("DATETIME_FORMAT") }}

2009-08-18 Thread Ramiro Morales
om/en/dev/topics/i18n/#id2 (last item in the list). If I understand things correctly, if/when Marc's GSoC work on this front gets merged, in 1.2 this will be replaced by similar but more explicit ways to specify the same info. HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina

Re: Admin add / list / etc links broken?

2009-08-17 Thread Ramiro Morales
nt in the following documentation code excerpts: http://docs.djangoproject.com/en/1.0/intro/tutorial02/#activate-the-admin-site (Django < 1.1) http://docs.djangoproject.com/en/dev/intro/tutorial02/#activate-the-admin-site (Django 1.1) -- Ramiro

Re: Setting tzinfo for DateTimeFields with Postgresql - workaround

2009-08-16 Thread Ramiro Morales
om/ticket/10587 > I've took the liberty of adding this to the Version1.2Features wikipage that is currently being used as a bag of potential 1.2 modifications: http://code.djangoproject.com/wiki/Version1.2Features?action=diff&version=55 Feel free to fix the description if the one

Re: subclassed ModelForms initial values behavior changed from 1.1beta to 1.1

2009-08-01 Thread Ramiro Morales
ttp://dpaste.de/Yr0f/ Please modify these tests to describe what you are seeing if I've missed anything. Regards, PS: Maybe you are not seein the difference in behavior at model instance save time as per what's described in the docs in the note right above this?: http://docs.djangoproject

Re: limit_choices_to

2009-08-01 Thread Ramiro Morales
t.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey you can write your own and further filter the queryset used for the FK field UI there, an example is included in the documentation. HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Setiembr

Re: Django and related_name

2009-07-29 Thread Ramiro Morales
explain the problem you describe: > def __inicode__(self): >return self.precio This isn' t correctly indented to be considered a method of your Tarifas model, it is being interpreted as a module level function. Obviously, the name is wrong too, it should be __unicode__ Regards,

Re: Editing model based forms.

2009-07-27 Thread Ramiro Morales
a subset of fields on the form" that describes the techniques (and the relevant caveats) for doing what you describe. 1. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ 2. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form HTH -- Ramiro

Re: Question on the ticket #11563

2009-07-27 Thread Ramiro Morales
f The tile of the section is "Hooking AdminSite instances into your URLconf" HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---~--~~ You received

Re: Django admin doesn’t show translated enumerations in list view under Python 2.3

2009-07-21 Thread Ramiro Morales
his a bug? > I haven't acceso to a system with Python 2.3 anymore so I can't do the following tests myself: Would it be possible to run your test case both under: * A checkout of Django from the 1.0.x SVN branch. * A checkout of Django from the SVN trunk. and see if there is any dffe

Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread Ramiro Morales
ces http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse will help you solve your problem. -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---~--~~ Y

Re: Accessor for field clashes with related field

2009-07-17 Thread Ramiro Morales
r more details: http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects HTH. -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon

Re: syncdb doesn't updated database after adding null=True to an IntegerField

2009-07-16 Thread Ramiro Morales
e FAQ: http://docs.djangoproject.com/en/dev/faq/models/#if-i-make-changes-to-a-model-how-do-i-update-the-database -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---

Re: NameError: name 'Job' is not defined

2009-07-10 Thread Ramiro Morales
;d like to keep them in different files. One solution to this is described in the relevant documentation: http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http:

Re: Gettext needs iconv.dll but I only have libiconv2.dll

2009-06-20 Thread Ramiro Morales
dated instructions would be a documentation change worth doing. Regards, -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Mysql and utf8

2009-06-18 Thread Ramiro Morales
Django documentation: http://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: multitable inheritance - child doesn't accept parent link

2009-06-18 Thread Ramiro Morales
ev/topics/db/models/#id7 regarding the parent link field and how to make that relationship explicit and control its name. Regards, -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Sometimes datetime sometimes date?

2009-06-15 Thread Ramiro Morales
ds in models and I > can't figure out why it returns one type at one time and another type > at another. What database are you using? -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: I think my filter problem should be a common one...

2009-06-10 Thread Ramiro Morales
to go, using e.g. > http://stackoverflow.com/questions/431628/how-to-combine-2-or-more-querysets-in-a-django-view, > but I think this is a rather common problem, so maybe someone knows > how to solve this more elegantly. > > Can anyone help me ? > > Cheers, > > Steve >

Re: Related Managers and use_for_related_fields strangeness

2009-06-10 Thread Ramiro Morales
(self) class Release(models.Model): project_fk = models.ForeignKey(Project) title = models.CharField(max_length=141) objects = ReleaseManager() Then you would be able to use the planning_backlog() method of your p Project instance to get what you need. I don't know if use_for_related_

Re: Related Managers and use_for_related_fields strangeness

2009-06-06 Thread Ramiro Morales
esn't say nor imply that there will be any automatic (magic?) per-Project filtering of Release querysets generated by your manager just because you have set its use_for_related_fields to True. Even further, it recommends against returning filtered query

Re: Bug in admin related to django.root

2009-06-03 Thread Ramiro Morales
hen I click Save it takes me to a URL that is > missing the django.root (of course the page doesn't exist on the > server so I get a 404). > > This seems like a django bug to me; does anybody know what I can do > about it? > Please tell us what version or revision of Dja

Re: Temporary urls for tests

2009-05-30 Thread Ramiro Morales
pics/testing/#urlconf-configuration > > -- > Filip Gruszczyński > -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: referencing the object id from clean validation methods

2009-05-16 Thread Ramiro Morales
the same as > djangos. > For Django, there is a ticket ([1]8861) open that asks for a documentation enhancement: adding a mention about self.instance in the relevant model form validation sections. -- Ramiro Morales http://rmorales.net 1. http://code.djangoproject.com/ticket/8861 --

Re: i18n of words that switch place in a sentence

2009-05-11 Thread Ramiro Morales
I would like to keep using the '18 minutes' part as a > variable so I can't just translate the whole sentence. Read http://docs.djangoproject.com/en/dev/topics/i18n/#standard-translation Good luck -- Ramiro Morales http://rmorales.net --~--~-~--~~~

Re: ManyToMany with a "through" attribute in the admin profile

2009-05-03 Thread Ramiro Morales
> a bug or is there a reason for this? See http://docs.djangoproject.com/en/dev/ref/contrib/admin/#working-with-many-to-many-intermediary-models -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: admin area language settings

2009-04-25 Thread Ramiro Morales
erhaps you can put the admin site in a separate website (and its own settings with LANGUAGE_CODE='en-us' ) Malcolm Tredinnick has written a good decription of the idea in a blog post: http://www.pointy-stick.com/blog/2009/03/26/django-tip-controlling-admin-or-other

Re: Turning password reset

2009-04-21 Thread Ramiro Morales
>> I've also been told nose has similar functionality. > > I don't get this one. Is it some kind of a sarcastic or ironic remark > I won't understand unless I'm native speaker? > Not at all http://somethingaboutorange.com/mrl/projects/nose/

Re: Turning password reset

2009-04-21 Thread Ramiro Morales
to a specification similar to the one used to specify the test to run, then it can be of some help. I've also been told nose has similar functionality. Regards, -- Ramiro Morales http://rmorales.net 1. http://code.djangoproject.com/ticket/8363 --~--~-~--~~~---~

Re: Django doesn't validates CharFields before gitting the DB?

2009-04-17 Thread Ramiro Morales
tual DLL definition of the image_content_type field? (i.e. does it contain 'NULL' or 'NON NULL'). Has the table been generated by Django itself from the model or is it a legacy database that you've generated the models from by introspecting it?. -- Ramiro Morale

Re: django and i18n what's wrong???

2009-04-13 Thread Ramiro Morales
0,_('Inactive')), > ) > > this is a really strange behaviour ... > To which one of the *gettext* function(s) are the _ alias defined in both models.py and views.py? -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this messa

<    1   2   3   4   >