On 6/27/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On Jun 27, 2006, at 9:58 AM, toth anna wrote:
> > I'm working on my thesis in our academy (i have to
> > implement, too).
> > Searching for an enviroment, i found django, and it looks
> > very nice.
> > After reading tutorial, i have some questions (and more to
> > come...:) before i fall in love with it.
> >
> > Is there any (elegant) opportunity for a "container level
> > logic". For example, there can be only 5 from a specific
> > type of item, and inserting a new, we have to delete oldest
> > object.
> > Or when saving an object, container "splits" it, and creates
> > two instead (from my example, if "date period" object
> > contains a year boundary, i have to split it), without
> > affecting "caller".
> >
> > Thanks for your help,
> >
> > Anna
>
> This question is best asked on django-users; I'm redirecting this
> thread there.
>
> Jacob

Oops, that's what I get for having Gmail dump both django-dev and
django-users into the same label.  :p

My reply on django-dev was a one-liner:

"You should be able to get the behavior you want by overriding the
save() method on your models."

--~--~---------~--~----~------------~-------~--~----~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to