ckwardsIncompatibleChanges#Auto-escapingintemplates
to see if you are being affected by it.
--
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 dja
is traverse only the Posts objects instead o N tables (1 for
> each kinkd of post)
>
See this thread for some ideas:
http://groups.google.com/group/django-users/browse_thread/thread/f4241bc16455f92d/dcd2bfcc91d99cc9
--
Ramiro Morales
--~--~-~--~~~---~--~~
You receiv
luton
functionality:
south, dmigrations, django-evolution, dbmigrations, deseb,
django-schemaevolution
Google for them.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" g
quot;
gives this
http://docs.djangoproject.com/en/dev/topics/templates/
as the first hit. Unsurprisingly, one of the sections in that document
is "Automatic HTML escaping"
Try reading it to know how you can control the feature.
Regards,
--
Ramiro Morales
--~--~-~--~~-
ev/ref/contrib/admin/#list-filter
it doesn't talk about fields of related models being supported at all.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
@vary_on_headers(''Accept-Language', 'Cookie')
See the following posts for related discussions:
http://groups.google.com/group/django-developers/browse_thread/thread/740f8d434e0660ff/5033945a4cdde102?hl=en&lnk=gst
http://groups.google.com/group/django-users/browse_threa
/admin/#adding-custom-validation-to-the-admin
Regards,
--
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-users@googlegroups.
ni Aloy that was the OP in one of these threads.
He pointed me to [1]ticket 5691 he opened back then. You might want to take
a look at it (to know propossed solutions, code devs opinions and
perhaps to post feedback and enhance the patch si it can be applied?).
HTH
--
oups.google.com/group/django-users/browse_thread/thread/cb18...
>>
Note that in the referenced thread I understood [1]you were [2]asking
for being able
to filter on fields of the FK-related model instead of by the FK iself.
Regards,
--
Ramir
uld I be doing a special encoding/
> compression before placing the image file into the cache?
>
See tickets #9180 and #5589 for related reports and proposed workarounds/fixes
when using the memcache backend.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
Yo
7;nombre' on form 'responsable_form' in
> context 0 does not contain the error 'Ya existe un responsable con
> este nombre' (actual errors: [u'Responsable with this Nombre already
> exists.'])
>
Does the settings file being used for the tests have USE_
mentation:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display
(Strangely enough the attribute is only described in the code examples
and is mentioned in part 2 of the tutorial. Maybe it's a good time to submit
patch for the documentation to remediate this.)
HTH,
--
Ramiro M
evision that worked (r7496) and 1.0.2 (r9503)
to try to find the commit that broke things for you. The functionality
was moved from make-messages to django-admin at revision 7844.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you
diary and m2m_through example:
http://www.djangoproject.com/documentation/models/m2m_intermediary/
(tests/modeltests/m2m_intermediary/models.py in the Django source tree.)
and the m2m_through example (tests/modeltests/m2m_through/models.py in
the Django source tree.)
HTH
--
Ramiro Morales
--~-
#x27;t clear the
> tables, even though it printed appropriate DROP TABLE statements, it
> just didn't issue the statements. Thanks.
That's exactly the intended behavior (and always has been. Please
read the fine documentation for more details:
http://docs.djangoproject.com/en/de
user
name and password I got redirected to the djangoproject.com
site and going back to code.djangoproject still didn't show me
as logged in.
So I had to log in again using the 'Login' link located at the upper
right corner of the page (in the light green strip),
isn't caused by that LIMIT part as it isn't sent to the
DB in other 'normal' conditions.
Regards,
--
Ramiro Morales
1.
http://code.djangoproject.com/browser/django/trunk/django/db/models/query.py#L146
2. http://code.djangoproject.com/changeset/9202
--~--~-~--~
t to see if, adding details from
your own case to it, you can reproduce what you are seeing?.
Of course, the only way I could reproduce what you report is
using:
js = 'prototype.js'
--
Ramiro Morales
--~--~-~--~~~---~--~~
You receiv
at deployment
method? Does the web server show a 404 error in its logs when the /jsi18n/
URL is accessed from the browser? What happens if you manually open with
your browser the http:///jsi18n/ URL?.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You receive
; URL.
>
That's strange, are you succesfully using another component of Django
i18n infrastructure in the same application?. De you have USE_I18N set to
True in the settings file you are using?
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this mess
of the distributed version control mirrors of
Django's SVN repo (Git, Mercurial, Bazaar), the URLs are published at:
http://code.djangoproject.com/wiki/DjangoBranches#Distributedversioncontrolmirrors
some of these provide tarballs with snapshots of the tree.
HT
IncompatibleChanges#Mergednewforms-adminintotrunk
Good luck
1. http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&quo
ong.
>
This is a bug and has been reported as ticket |1] #7027, you can track
the advance of the issue there.
Also, you can help by applying the latest patch attached to it and posting you
experience there as a comment if you find some problem with it.
Regards,
1. http://code.djangoproject.com
On Sun, Aug 31, 2008 at 2:09 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote:
>
> This is a bug and has been reported as ticket |1] #7027, you can track
> the advance of the issue there.
>
This is fixed as of revision 8769.
cheers,
-
o take a look at
http://docs.djangoproject.com/en/dev/topics/i18n/#message-files
(Yes, we need to refactor and enhance that document.)
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
file located in the
same directory).
>
> And the django.po file has longer paths to everything.
The paths in the PO file comments have no effect.
HTH,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
;
> Page not found (404)
> Request Method: GET
> Request URL:http://labs.lamepunch.org/labs.fcgi/
>
> Trying to access the admin I get:
>
> The current URL, labs.fcgi/labs.fcgi/admin/, didn't match any of these.
>
> Any clues? I've been asking aroun
ving static files with the
Django development server".
to avoid helping people making wrong assumptions based in
the generality of the document title.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
on how to update PATH that could be of help to
you:
http://docs.djangoproject.com/en/dev/topics/i18n/#gettext-on-windows
>
> After setting this variable will the trunk version of Django be
> "installed"? I don't have to run the setup.py file after, right - this
> will repla
prefixes.
See http://docs.djangoproject.com/en/dev/topics/http/urls/#the-view-prefix
and
http://docs.djangoproject.com/en/dev/topics/http/urls/#multiple-view-prefixes
for details.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribe
s you need to download
and execute an .exe installer for your version of Python.
HTH
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
ou
were able to do but in a clearer way.
Regards,
--
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-users@googlegroups.com
xt person stumbling
the same doubts are welcome 8)
--
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-users@googlegroups
uld print the complete SQL query generated by the
QuerySet.
Both the query attribute and as_sql() method are internal implementation
details of QuerySet. That's why they are not documented, but you can count
on them being present for the foreseeable future.
HTH
--
Ramiro Morales
--~--~-
-like parmeter maker style with a list
or tuple of actual parameters.
If you want to use the pyformat parameter marking style (as described
in PEP 249),
you' ll need to use the native DB-API driver API as you've already discovered.
ngeset/9418
Regards,
--
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-users@googlegroups.com
To unsubscribe from this group,
ar(models.Model):
> college = models.ForeignKey(College)
>year = models.IntegerField()
>wins = models.IntegerField(default=0)
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
bug... but
> it sure cost me some time because in my eyes it was something complete
> out of the blue.
>
> Django version 1.0.2
> Python 2.5.2
>
What DB backend are you using?.
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this mes
umentation page,
which took me to this page:
http://docs.djangoproject.com/en/dev/modindex/
and then searching for 'widget'.
HTH,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
ges/sphinx/
> application.py", line 120, in setup_extension
> mod.setup(self)
> File "/Users/benjamin/Code/django/django-trunk/docs/_ext/
> djangodocs.py", line 15, in setup
> app.add_crossref_type(
> AttributeError: 'Sphinx' object has no attribute
On Tue, Feb 3, 2009 at 9:29 AM, Waruna de Silva wrote:
> Hi,
>
> In Django is it possible to created models automatically from
> existing database.
Yes, see
http://docs.djangoproject.com/en/dev/howto/legacy-databases/#howto-legacy-databases
--
Ra
;
> Sorry, made a mistake; On 9781 the problem is still there.
> On 9084 (also quite randomly chosen) it seems to be allright.
Revision 9766 introduced some changes related to file fields, can
you try to refine your tests and see if it is the one that broke
things in your case and repor
ionality and avoids the need to patch
Django, it includes a new type property for the messages. The author also
posted a link to a [4]blog entry describing it.
Regards,
--
Ramiro Morales
1. http://code.djangoproject.com/ticket/4604
2. http://code.djangoproject.com/wiki/Version1.1Features#Must-ha
hor = models.OneToOneField(User, verbose_name=_('author'))
the verbose_name option for the relationship type fields
is currenty documented in the model topics document but not in the
field options refererence.
HTH,
--
Ramiro Morales
--~--~-~--~~~---~--~~
;
>
> what am i doing wrong or what have i missed?
>
This is described in the documentation:
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id3
You should be sure the django/contrib/admin/media/
directory from the Django source code tree is pub
Apache document root." blurb suggests, copying the
django/contrib/admin/media tree to your document root would be one way
of achieving this.
Another option would be to use the Alias and Directory apache
configuration directives
(http://httpd.apache.org/docs/2.2/mod/mod_alias
he django.views.generic.date_based.archive_index
generic views is matching.
Fix these problems first and then post again if you are still
experimenting problems.
HTH,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
n
blocks/directives above?.
It is really better for you and for anybody trying to help
you if you follow some basic common sense practices
because it isn't very practical having to set up
a test Django app under one's Apache document root
just to reproduce your setup.
--
Ramiro Morales
org/dev/peps/pep-0263/
Also, make your to wrap your Portuguese literals with a call to the
django.utils.translation.ugettext_lazy() function as described in the
Django I18n documentation:
http://docs.djangoproject.com/en/dev/topics/i18n/#lazy-translation
R
0200] "GET /media/foo.gif
HTTP/1.1" 404 211 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)"
error.log:
[Wed Feb 11 15:13:00 2009] [error] [client 192.168.190.2] File does
not exist: /var/djapps/dtests/template
encoding, and it isn't the one you expect, you can
re-code it using the iconv utility or re-create the models.py file from
scratch making sure you tell from the beginning your text editor you want
the file to use UTF-8 encoding.
HTH
(sorry for not making this cle
Django installed
under both Python versions)
Yo can create your own .BAT files containing just
that if you want to save some keystrokes.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&q
a given file.
You can disable Apache mod_autoindex
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html
for that directory.
But the easiest way to avoid the generation of the directory content
listing is simply creating an empty index.html file there.
--
Ramiro Morales
--~--~
fashion).
The dbshell Django management command uses this utility. So you need
to download sqlite3.exe if you want to use it.
Regards,
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
, or a debugging proxy, or
a Firebug equivalent for IE and see if the cookie is arriving
to the browser at all and if it does, why IE is ignoring it.
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
search in the relevant mailing lists
archives with sensible terms. With pieces of code like IE probabilities
are high somebody has already suffered the same problems.
--
Ramiro Morales
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
e %}
I've opened [1]ticket 10436 for this , please test the patch attached
and/or post
feedback about it or the ticket description notes.
>
> All of those are bugs (the same bug: not marking app name for
> translation). If you'd like to open a ticket and drop in a patch, it's
> an
gt;
> Any clues why my development server fetches and filters will not
> return coherent
> data?
>
It's not cleat to me what does the development server have to do with this.
Could you explaining it a bit further.
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~---
ss Meta:
> model = models.MyModel
> fields = ('name', 'description')
>
> models.py:
> class MyModel (models.Model):
> name = models.CharField(max_length=50,verbose_name=_("Name"))
> description = models.CharField(max_length=200,
I access http://www.ziyoudu.com/login/
> I enabled the debug information then and found it seems that the url is
> translated to a static file path. The debug infomation is:
That's because you aren't really following the documentation
example, you are missing the "check-loca
ive shell
(manage.py shell) you need to restart it to see the efefct of the
changes you perform in model.py.
HTH
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
eful is to also know which revision
you had been (successfully) using before so we can
search for a commit in the range, not necessarily 10087.
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed
74 is the revision where your
problems started?
Can you reduce your problematic models to a minimal test case?
and paste it to dpaste.com?
Do the problematic models have circular references among them?.
Regards,
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~~---~--~
request:
>
> >>> client.get('/foo/bar/',extra={'HTTP_HOST':'example.com'}
actually results in a 'extra' key whose value is a nested dictionary
in the request.META dictionary. Use
>>> client.get('/foo/bar/', HTTP_HOST='e
to the equivalent SQLite and MySQL command
line tools and this would increase the chances of it or a similar fix
getting applied to solve this problem with dbshell on Windows.
HTH,
--
Ramiro Morales
http://rmorales.net
1. http://code.djangoproject.com/ticket/10357
--~--~-~--~~-
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
;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:
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/
--~--~-~--~~~---
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
ny-relationships
http://docs.djangoproject.com/en/dev/topics/db/models/#models-across-files
http://docs.djangoproject.com/en/dev/ref/models/fields/#lazy-relationships
HTH
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~~---~--~~
You received this message because
models/options/#db-table
class Country(models.Model):
# ...
class Meta:
db_table = ' country'
HTH,
--
Ramiro Morales
http://rmorales.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
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
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
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
--~--~-~--~~~---~
>> 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/
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
> 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
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
--~--~-~--~~~
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
--
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,
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
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
(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_
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
>
1 - 100 of 364 matches
Mail list logo