Re: models and forms

2019-04-29 Thread Nelson Varela
What do you have so far. show some code or explain what you have so far On Monday, April 22, 2019 at 1:40:06 PM UTC+2, Shereyne Casimsiman wrote: > > I am current making a project and django is very new to me, I've been > following tutorials but it did not answer my concern.. > My project is to

models and forms

2019-04-22 Thread Shereyne Casimsiman
I am current making a project and django is very new to me, I've been following tutorials but it did not answer my concern.. My project is to build a quiz that will have an audio as the question . I already installed the django-audiofield and successfully added it into the admin but my problem

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Please forget about the persisting data part. The problem is that inside the parent form i dont have access to the related data and the formsets new related data is validated after the parent models data. Inside the formset every related data model does not have access to the other related

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Jason
I still don't understand why you want to persist unvalidated data to the db then? if a user requests the data in mid-update, that's something that can be handled with transaction locks on the db. so when that happens, the request will wait till the locks are released before executing the db

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Am Sonntag, 26. August 2018 18:29:49 UTC+2 schrieb Jason: > > I think we're missing a few things. how fast does this query with updated > values execute after the form submits? > a neglectable amount of milliseconds > if you need to return the value back to the view, can't you do some

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Jason
I think we're missing a few things. how fast does this query with updated values execute after the form submits? if you need to return the value back to the view, can't you do some sort of post-save retrieval and form populate? -- You received this message because you are subscribed to the

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Am Sonntag, 26. August 2018 18:07:25 UTC+2 schrieb Jason: > > why would you want to persist unvalidated data to your db? > >> >> Well, i dont necessarily have to, but i somehow need to be able to perform a query with all updated data taken into account. The easiest solution i came up with is

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Jason
why would you want to persist unvalidated data to your db? On Sunday, August 26, 2018 at 10:42:28 AM UTC-4, Andy wrote: > > I want to execute a check after the related data from the admin has been > saved, but the default clean methods get executed before the formsets are > saved. Where could i

How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
I want to execute a check after the related data from the admin has been saved, but the default clean methods get executed before the formsets are saved. Where could i place my check to have access to a full version of what has been changed on the admin page? -- You received this message

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Nikhil Verma
l be displayed in html like this >> >> Insitutue hour of operation : Monday 9.00 - 17.00 (Monday will be >> hardcoded,Time will be filled by user) >> **Tuesday 9.00 - 17.00 >> (Monday will be hardcoded,Time will be

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Sunny Nanda
day, tuesday they are all hardcoded as > requirement but i don't want that to be hardcoded. > Also i am using a django forms to display this. > > > How can i design this form field as well in models or What should be the > type of this field both in models and forms such that weekdays

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread jonas
Nikhil Verma wrote: How can i design this form field as well in models or What should be the type of this field both in models and forms such that weekdays remain dynamic(i can simply generate them from loop) and the user can fill the time  and when he hits submit it will get saved. I would

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Melvyn Sopacua
On 29-6-2012 11:01, Nikhil Verma wrote: > Yes it is the count of the hours.They will enter in the following manner "- > > Monday : 0900-1800, Tuesday and so on ... This will be entered by the user > who is filling the form. > > Now the text Moday(weekdays can be hardcoded but i personally don't

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Jon Black
o on # Note the weekdays like monday, tuesday they are all hardcoded as requirement but i don't want that to be hardcoded. Also i am using a django forms to display this. How can i design this form field as well in models or What should be the type of this field both in models and forms such that week

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Nikhil Verma
and so on > > # Note the weekdays like monday, tuesday they are all hardcoded as > requirement but i don't want that to be hardcoded. > Also i am using a django forms to display this. > > > How can i design this form field as well in models or What sho

Re: how to manage range of hours in models and forms in django1.4

2012-06-29 Thread Jon Black
in models or What should be the type of this field both in models and forms such that weekdays remain dynamic(i can simply generate them from loop) and the user can fill the time and when he hits submit it will get saved. Thanks in advance. -- Regards Nikhil Verma +91-958-273-3156 -- You

how to manage range of hours in models and forms in django1.4

2012-06-28 Thread Nikhil Verma
as requirement but i don't want that to be hardcoded. Also i am using a django forms to display this. How can i design this form field as well in models or What should be the type of this field both in models and forms such that weekdays remain dynamic(i can simply generate them from loop

Re: Two views, Two models, Two forms, one template

2009-06-16 Thread Jonathan
Nevermind, I was missing something terribly basic and just needed to stop looking at it for a bit to realize how to combine it. On May 22, 5:08 pm, Jonathan wrote: > I am sure this is some very easy and simple concept I am just not > grasping.  I have two views which are

Two views, Two models, Two forms, one template

2009-05-22 Thread Jonathan
I am sure this is some very easy and simple concept I am just not grasping. I have two views which are very similar. Both take the same variable and iterate the applicable data. I am trying to get them to render on the same template. However, when I create one as a template tag and try to

Re: Trying to reuse models and forms

2007-12-12 Thread Kirk Strauser
On Wednesday 12 December 2007, l5x wrote: > form_for_instance? Check: > http://www.djangoproject.com/documentation/newforms/#generating-forms-for >-models That's only in the SVN version, but if we have to move from .96 to SVN to get it then so be it. -- Kirk Strauser signature.asc De

Re: Trying to reuse models and forms

2007-12-12 Thread l5x
form_for_instance? Check: http://www.djangoproject.com/documentation/newforms/#generating-forms-for-models --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,