Hi Balaji,
Sorry but I don't understand what do you mean with "*If we put this code
with necessary care*".
All I can say is that your code is not thread safe and it *may* break. How
likely is this to happen depends on the usage patterns of your app. How
serious it will be depends on the leaked da
Dear Alexis Roda Sir
Thank You very Much.
definitely Race Condition may arise if we do not put code inn critical
section. But your suggested approach did not work and i found another
alternative which is working fine. If we put this code with necessary care
than will it be ok?
On Tue, May 28,
No, it isn't. It's not thread safe.
Changes in shared state in multi-threaded code may lead to race
conditions[1].
Depending on your usage it may be very unlikely, but under the right
circumstances root may end up having some missing fields in the form or dgp
may see fields that it is not intende
This is the proper code to customize models column userwise.
Here we are sharing model among multiple user and depending upon right
access, it is visible
in admin.py
normaluser_fields =
['user','CourtType','SuitType','CaseNumber','CaseYear','CaseAdvocate','CasePartyNames',
'
Dear Alexis Roda Sir
Thank You very much for your nice reply. I check it.
On Tue, May 28, 2019 at 1:55 AM Alexis Roda <
alexis.roda.villalo...@gmail.com> wrote:
> Not an admin expert here.
>
> You are modifying the modeladmin instance and, by the behavior you're
> describing, it looks like it i
Not an admin expert here.
You are modifying the modeladmin instance and, by the behavior you're
describing, it looks like it is a global (shared) object. I'm guessing, you
can confirm this by printing id(self) in add_view(). I'll bet you get the
same value in each request, so the instance is share
*Hi*
*i have encountered very strange problem. have two user . One is superuser
of name "root" and another is general user of name "dgp". I have model of
Name Profile with 21 fields around.*
*I want to show all field of Model Profile in "root" login.*
*I want to exclude 4 field of Model Profile
7 matches
Mail list logo