Re: How to restrict save function in Django admin

2014-12-05 Thread Collin Anderson
Hi, Would it work to validate the CSV in the form? Maybe start processing it, but if there's an error, raise a forms.ValidationError? Collin On Wednesday, December 3, 2014 12:03:56 AM UTC-5, Akshay Mukadam wrote: > > Hi, > I have developed application that loads CSV file, if the input received

Re: How to restrict save function in Django admin

2014-12-03 Thread Ezequiel
On Wednesday, December 3, 2014 2:03:56 AM UTC-3, Akshay Mukadam wrote: > > Hi, > I have developed application that loads CSV file, if the input received > while parsing the CSV file in Django admin is wrong, it throws a > stacktrace, to avoid stacktrace I have handled the exception and I am able

Re: How to restrict save function in Django admin

2014-12-03 Thread pjotr
Maybe you could show the code to clearly see what you are doing? On Wednesday, December 3, 2014 6:03:56 AM UTC+1, Akshay Mukadam wrote: > > Hi, > I have developed application that loads CSV file, if the input received > while parsing the CSV file in Django admin is wrong, it throws a > stacktrac

How to restrict save function in Django admin

2014-12-02 Thread Akshay Mukadam
Hi, I have developed application that loads CSV file, if the input received while parsing the CSV file in Django admin is wrong, it throws a stacktrace, to avoid stacktrace I have handled the exception and I am able to show the error message using the Message framework in django. But the proble