
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Dynamic fields and settings theme color admin
Conditional fields show/hidden
^3
^2.2
pip install django_ui
django_ui
to your installed apps./ manage.py migrations
Conditional choice
{name_choice} j__{key_choice}
to the trigger elementConditional Checkbox
j__{name_bolean}
to the trigger elementTo use, create the forms.py file and add the class created in ModelAdmin
{name_choice} j__{key_choice}
forms.py
from django import forms
class ModelExampleForm(forms.ModelForm):
occupation = forms.ChoiceField(choices=[
('study', 'Study'),
('work', 'Work')
], )
study = forms.CharField(label='Name Institution', required=False,
widget=forms.TextInput(attrs={'class': "occupation j__study"}))
semester = forms.CharField(label='Semester', required=False,
widget=forms.TextInput(attrs={'class': "occupation j__study"}))
company = forms.CharField(required=False,
widget=forms.TextInput(attrs={'class': "occupation j__work"}))
position = forms.CharField(required=False,
widget=forms.TextInput(attrs={'class': "occupation j__work"}))
admin.py
from django.contrib import admin
from your_app.forms import ModelExampleForm
from your_app.models import ModelExample
class ModelExampleAdmin(admin.ModelAdmin):
model = ModelExample
form = ModelExampleForm
\
j__{name_bolean}
from django import forms
class ModelExampleForm(forms.ModelForm):
...
nick = forms.BooleanField(required=False, label='Add NickName?', help_text='Select if you want to add NickName',
widget=forms.CheckboxInput())
nickname = forms.CharField(required=False, widget=forms.TextInput(attrs={'class': "j__nick"}))
NOTE: In the form just add the fields you want to be dynamic
Preview
By default app hidden:
Show model example:
In settings create var DJANGO_UI_SHOW_MODEL_EXAMPLE_DYNAMIC = True
Use model theme:
In settings create var USE_APP_THEME_UI_ADMIN = True
Made with ♥ by Jose Florez
FAQs
Dynamic fields and settings theme color admin
We found that django-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.