Models.clean() how to raise ValidationError WITH error_code and show field_based errors in the Form-Template?

2015-08-02 Thread jordi collell
An easy way is to test that the rendered form has the error message raised suring rhe validation. -- 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

Re: Restricting CreateView

2015-08-02 Thread jordi collell
I think you don't need extra packages for the task. You can overwrite the dispatch to validate permissions on get and post create view. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

BaseListView's get_context_data is missing kwargs?

2015-08-02 Thread jordi collell
Not sure if i'm understanding what are you saying. But kwargs on get.. Are stored on a object property. Self.kwargs (prior the dispatch) method. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

BaseListView's get_context_data is missing kwargs?

2015-08-02 Thread jordi collell
Not sure if i'm understanding what are you saying. But kwargs on get.. Are stored on a object property. Self.kwargs (prior the dispatch) method. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

DB Design question

2015-08-01 Thread jordi collell
Hi all! I have to store spreadsheet info on a db. Some kind of quotes where the user can store distinct prices for every zone. After modeling the data, i have a Cell like row. (related to a zone, and with a quantity field).. something like: zone1 1 100 zone1 2 99 zone1 3 98 Every zone