moshthepitt / django-vega-admin Goto Github PK
View Code? Open in Web Editor NEWDjango VegaAdmin - simple and fast automated CRUD for any Django model
License: MIT License
Django VegaAdmin - simple and fast automated CRUD for any Django model
License: MIT License
#27 introduces a way to generate list view search forms.
However, these forms use the default FormHelper. We need to add a FormHelper class that is more specialised for search and that works with the generated form.
Add an included, optional app, that uses vega_admin to add CRUD to Django users.
The action links rendered on each row should have the ability of being made dynamic.
Perhaps this can be achieved by extending render_actions_fn
(or just making it configurable), maybe by making it take a function to check if action links should be rendered.
Add support for permissions to VegaCRUDView
make it possible to use urls that have slugs
or uuid
s
You are likely to get an error like so django.urls.exceptions.NoReverseMatch: Reverse for 'plain-form-list' not found. 'plain-form-list' is not a valid view function or pattern name.
Add support for custom templates in VegaCRUDView
default views.
Add support for configurable search fields in VegaCRUDView
.
get_field_value will throw an error is the field is not hashable. e.g. for JSON field
Suggested fix:
def get_field_value(self, field):
"""Get the value of a field."""
if field.is_relation:
try:
return str(getattr(self.object, field.name))
except AttributeError:
return None
try:
# pylint: disable=protected-access
return self.object._get_FIELD_display(field)
except TypeError:
# for some reason this is not hashable
field_value = getattr(self.object, field.attname)
return json.dumps(field_value, cls=DjangoJSONEncoder)
Request Method: | GET
-- | --
http://127.0.0.1:9000/hr/locations.location/create/
2.2.3
NoReverseMatch
Reverse for 'locations.location-list' not found. 'locations.location-list' is not a valid view function or pattern name.
Add an example Django project that utilizes VegaCRUDView
and can be run quickly to test this app.
In VegaCRUDView
, we need to add custom configurable search and filter for list view, such that:
When you install this package the templates directory is not included
This is so that it does not conflict with any other apps out there that have the label "users".
This will be some kind of meta mothership of a view that tables at least a Model and generates view to create, update and delete the model objects. It should also generate url patterns that are already hooked up!
someField__year
Add support for login protection in some or all of the views generated by VegaCRUDView
.
Right now cripsy form helpers are created inside get_modelform. We need to:
Add a way to login protect some or all of the views in a CRUD view
When using a custom modelform, we need to have a way of making the form action buttons look similar to the native modelform buttons
Nothing is documented so far...
Add support for paginate_by in the list action of VegaCRUDView
__init__() got an unexpected keyword argument 'vega_extra_kwargs'
This happens when you create a CRUD view using a non-Vega model form.
The list view uses django-tables2
We need to add a way to autogenerate a TableClass for any model. The resulting table class should:
Add bootstrap3 templates usable by VegaCRUDView
Add support for custom actions to VegaCRUDView
.
Add a read/view action as one of the default actions in VegaCRUDView
django.core.exceptions.FieldError: 'created' cannot be specified for Requisition model form as it is a non-editable field
These should be generic class based view that should, in theory, work for any model that they are given
Make it easy to work with formsets.
See: https://dev.to/zxenia/django-inline-formsets-with-class-based-views-and-crispy-forms-14o6
Add a way to generate a crispy-form aware ModelForm for any provided model.
By default it should include:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.