2009/5/7 Jacob Kaplan-Moss
>
> Now, we can't ship with anything that actually causes data loss,
>
i know you asked for reducing the number of tickets for 1.1, but i think one
should actually be added:
http://code.djangoproject.com/ticket/6191
this does not only cause data
I think it would be even nicer if the function passed into the
decorator could
actualy return the new value of the field, instead of assigning it and
call save().
Currenty the function does two tasks:
1) figure out what needs to be updated "resolve dependenys"
2) calculate the new value
maybe the
one more thing...
On Nov 23, 12:00 pm, Andrew Godwin <[EMAIL PROTECTED]> wrote:
> Additionally, your code loops over every model every time, whereas in
> some cases you can detect which specific model needs updating (for
> example, if you know that the field "planet" on the just-saved object is
i spend some time implementing my idea above (still just a proof of
concept, all testing i did was on the example project)
the resulting models.py: (still in the same place)
http://github.com/initcrash/django-denorm/tree/master/example%2Fgallery%2Fmodels.py
as you can see, this makes the
On Nov 28, 5:30 pm, Andrew Godwin <[EMAIL PROTECTED]> wrote:
>
> One: This is the MirrorField equivalent in the example:
>
> @denormalized(models.CharField,max_length=100)
> @depend_on_related(User)
> def owner_username(self):
> return self.owner.username
>
> While it's
On Nov 30, 12:54 am, Andrew Godwin <[EMAIL PROTECTED]> wrote:
> The unit test 'suite' is hardly finished yet (one test...), but it does
> at least do a pretty thorough use check of some of the more basic
> scenarios. ./manage.py test denorm does indeed test and come out OK,
> though - it even
2008/12/18 Collin Grady
>
> Admin is for admins. Not limited users.
>
then why does it have permissions at all?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To
2008/12/18 Jacob Kaplan-Moss
>
> To get back to the original question, you can do this right now with a
> bit of custom admin code. Take a look at
> ``ModelAdmin.has_change_permission`` -- you can override this method
> to control exactly what the definition of "can
2008/12/18 Jacob Kaplan-Moss <jacob.kaplanm...@gmail.com>
>
> On Thu, Dec 18, 2008 at 10:35 AM, christian schilling
> <initcr...@googlemail.com> wrote:
> > mybe changelist views should not check permissions at all, by default.
>
> If you think about this a bit
As i already spend some time implementing demormalization for django
(the "django-denorm" project on github mentioned above), i'd like to
ad a few thoughts:
The solutions created by Andrew Godwin and me currently rely completly
on django signals to detect database rows that need updating.
This
2009/3/22 Daniel Tang <dan.y.t...@gmail.com>
>
> On Sun, Mar 22, 2009 at 11:55, Christian Schilling
> <initcr...@googlemail.com> wrote:
>
> > 2) a API like the current django-denorm to turn functions into fields.
> > this could work by creating a model Dir
11 matches
Mail list logo