Using ModelForm in inlineAdmin with view permissions

2022-01-01 Thread the.one.abo...@gmail.com
Hello everyone! I have created a demo project to convey my use case programmatically. Here is a brief description of the project. The Django project contains an application "home" that has four models: Device, Location, FloorPlan and DeviceLocation. DeviceLocation is a thorough model that con

Re: Using ModelForm in inlineAdmin with view permissions

2022-01-03 Thread the.one.abo...@gmail.com
Hi, My previous email did not include link to the demo project. Please find the demo project here: https://github.com/pandafy/inline_view_only. Thanks, Gagan Deep On Saturday, January 1, 2022 at 10:15:21 PM UTC+5:30 the.one.abo...@gmail.com wrote: > Hello everyone! > > I have

Ideas for Django Bootcamp

2021-04-15 Thread the.one.abo...@gmail.com
Hey everyone, I am planning to organize a Django Bootcamp for beginners. As usual, I want to make attendees approach Django through means of a project, but I really don't want to do something like a blogs or note website. If you were to start learning Django today, what website would you like

Re: Ideas for Django Bootcamp

2021-04-15 Thread the.one.abo...@gmail.com
Hi, I forgot to mention in my previous email this Bootcamp will not last more than a week. So. it will be mostly introductory. Best wishes. Gagan Deep On Thursday, April 15, 2021 at 12:34:08 PM UTC+5:30 the.one.abo...@gmail.com wrote: > Hey everyone, > > I am planning to organize

How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello, I have customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS. But, this format is not supported by the D

How to format datetime stamp in JS like it is done by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello everyone, I am customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS which is "'j M Y, P'". But, this for

Re: How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
gt; date and time format set by Django based on the LANGUAGE_CODE, USE_I18N, > and USE_L10N parameters, without needing to hardcode the formatting of the > datetime string into your JavaScript code. > > Le jeu. 21 mars 2024 à 12:13, the.one.abo...@gmail.com < > the.one.abo...@gmail.