Allow to change the default model manager

2016-08-26 Thread Paulo Gabriel Poiati
Hello, I’m not sure if this have been discussed here already. I didn’t find anything in Tracker. What if we allow the change of the default manager of all models? This could be done through the settings, something like DEFAULT_MODEL_MANAGER. Examples of use cases are: - Change the `create` meth

Propagation and override of model and form field validators

2016-08-26 Thread Claude Paroz
Hi, The ticket #25594 [1] is about the issue of adding custom validators to model and form fields. I made a code suggestion through a pull request [2], but I'd like to get more opinions about the design and the proposal. Feel free to comment on the ticket. Thanks! Claude [1] https://code.dja

Re: Django Rest Framework inside of a Django Project

2016-08-26 Thread ludovic coues
You might get more responses on the django users mailing list. This one is for discussing new feature of the framework, not its usage. 2016-08-26 17:30 GMT+02:00 Sylvain Dégué : > Hi, > > I am building a mobile application and I need a Rest API and a web version > of my app. So I was wondering if

Django Rest Framework inside of a Django Project

2016-08-26 Thread Sylvain Dégué
Hi, I am building a mobile application and I need a Rest API and a web version of my app. So I was wondering if I could make a website with Django Rest Framework or if I have create a Django project for my website and a Django Rest Framwork for my API -- You received this message because you

Re: FEATURE REQUEST: Choices overriding in a classes, which inherit abstract class

2016-08-26 Thread Marc Tamlyn
Adding a new meta option is very unlikely to happen. Really, this is a question about dynamic choices, rather than just inheritance. I'd rather see some sort of solution which allows some (optional) hooks to customise choices on a per-class (or maybe even per instance) basis. This is tricky though