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 
> to show the error message using the Message framework in django. 
> But the problem is that when I save the data it shows the error that CSV 
> data is incorrect, but it also show save message, how could I override 
> this.???
> Thank You
>

in admin.py

class MyModelAdmin(admin.ModelAdmin):
    def has_change_permission(self, request, obj=None):
        return False 


Ezequiel
http://flickrock.com/mikelpierre

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e13c29e0-0497-4df8-b9db-77453dd8dc54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to