Trying to have Employees created from within rather than in a Sign Up

2020-11-29 Thread Dumba Classics
Hello Family. I have adopted django Custom Model Approach as means of creating my employees but I have a shortcoming. It wouldnt make sense and be secure to have a signup url for my employees hence the It Admin will have to add users from within and hence I am struggling to come up with a code

Re: Trying to trigger a bulkcreation of records using a reverse relationship

2020-11-13 Thread Dumba Classics
thank you @Chetan the solution does work and I am very grateful!! On Fri, Nov 13, 2020 at 5:35 PM Chetan Ganji wrote: > Im not 100% sure about this :P > > Instead of this - > def save(self, *args, **kwargs): > if self.records.count() <= 0: > for student in self.klass.students.all(): >

Re: django-tenants domain issue

2020-06-03 Thread Dumba Classics
Thank you Sir you are a life saver On Wed, Jun 3, 2020 at 11:49 AM Andréas Kühne wrote: > You just need to add those to your hosts file locally on your computer. > > If you are using Mac: > https://www.imore.com/how-edit-your-macs-hosts-file-and-why-you-would-want > > If you are using Linux: >

Re: Model Arithmetic Operation

2020-06-03 Thread Dumba Classics
Inbox me with your objective on what you want to accomplish and give me the the piece of code trying to emulate your two models and then I will look into your code and give the Solution if I can. Sincerely D.C On Wed, Jun 3, 2020 at 5:12 AM Hella Nick wrote: > >- > >Niggers are clearly

Re: django-tenants domain issue

2020-06-02 Thread Dumba Classics
Nope I was just doing it on Localhost to test on how feasible it is for my project. Instead of checking with an app thats live I created a dummy project nd thats where I was working on. Why ask???