Lack of View permission in Django

2015-10-18 Thread Ankit Agrawal
I have an active Django project where the admin panel is used by the customer support team. I have two questions - 1. Django lacks a `view` permission because of which I have to assign the change permission to the customer support team which is slightly dangerous. I have some models for which

Django REST Framework : Serializer field level validation of OneToOne fields

2015-08-18 Thread Ankit Agrawal
The code corresponding to my query is rather big hence I posted it on Stack Overflow - http://stackoverflow.com/questions/32063427/django-rest-framework-serializer-field-level-validation-of-onetoone-fields -- You received this message because you are subscribed to the Google Groups "Django

Re: Different auth user models withoout doing multi-table inheritance

2015-08-10 Thread Ankit Agrawal
On Tuesday, August 11, 2015 at 2:31:11 AM UTC+5:30, James Schneider wrote: > > On Mon, Aug 10, 2015 at 12:11 PM, Ankit Agrawal <g...@gmail.com > > wrote: > >> Hi James, >> >> Correct me if I am wrong but if I understood you correctly, I should

Re: Different auth user models withoout doing multi-table inheritance

2015-08-10 Thread Ankit Agrawal
r class because both AbstractUser and > AbstractBaseUser are both...abstract. They don't exist in the DB. > > -James > > On Mon, Aug 10, 2015 at 10:29 AM, Ankit Agrawal <g...@gmail.com > > wrote: > >> @James: Even if I implement a Custom abstract class inheriting fr

Re: Different auth user models withoout doing multi-table inheritance

2015-08-10 Thread Ankit Agrawal
@James: Even if I implement a Custom abstract class inheriting from AbstractBaseUser, the Custom Abstract Class would have a explicit OneToOneField to the AbstractBaseUser, which essentially would mean having overheads due to JOINs as in MTI. Ankit Agrawal, IIT Bombay. On Mon, Aug 10, 2015

Different auth user models withoout doing multi-table inheritance

2015-08-10 Thread Ankit Agrawal
I am working on a project which has two different sets of users - Customer and Merchant. Both of these users should be able to register and login to their respective profiles. The most obvious choice to implement this that came to my mind was to make two different models Customer and

Django SECRET_KEY : Copying hashed passwords into different Django project

2015-08-05 Thread Ankit Agrawal
Hi everyone, I have a Django powered site(Project-1) running with some users registered on it. I am now creating a revamped version of the site in a new separate Django project(Project-2) which I would make live once finished. I would need to populate the User data along with their

Django Model field : Ordered List of Foreign Keys

2015-07-23 Thread Ankit Agrawal
I have a `Route` model which should store an ordered list of stops along that route. How should I go about modeling this relation? class Stop(models.Model): name = .. latitude = .. longitude = .. class Route(models.Model): stops_list = # Ordered list

Django : DRF Token based Authentication VS JSON Web Token

2015-07-23 Thread Ankit Agrawal
Hi everyone, I am building a real world application where users will access the app primarily from Android, iOS devices as well as Desktops. >From my elementary research, I have realized that token based authentication mechanism is more better and elegant for client-server models

Django JQuery AJAX submit form POST request refreshes the page

2015-07-07 Thread Ankit Agrawal
Hi everyone, I have a login form for which I want the client to send AJAX POST request as below with error handling. In case of validation/authentication errors, I don't the page to be reloaded or refreshed to the url corresponding to POST request Handler(/users/login/) with the JSON

Django admin does not show value of datetime field till seconds/miliseconds

2015-05-01 Thread Ankit Agrawal
Hi everyone, I have a model which has a datetime field. In the django admin, the value is shown only till minutes. How can it be configured to display the value in second/milisecond?