Django-glue

Latest version: v0.7.8

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.7.2

Bugs
- Added endpoint to retrieve glue session data.
- JS function to retrieve glue session data to update window variable and keep live.
- Gluing Templates and Views now fetches and updates the session data to initialize glue objects properly.

0.7.1

Changes
- glue_fetch refactored to be more extendable.
- glue_view uses glue_fetch with shortcut functions for both get and post requests.
- glue view _render refactored to _fetch_view
- GlueView's will have to be refactored to use the new parameter passing and methods.
js
// Old Method
view_card: new GlueView('{% url "view_card" %}?tacos=hello')
view_card._render({'page': 2}, 'POST')

// Refactored Method
view_card: new GlueView('{% url "view_card" %}?tacos=hello')
view_card.post({'page': 2})
view_card.get({'page': 2})

0.7.0

Changes
- Extra data used for glue configuration has moved to _meta on objects.
- Shortcuts have been written for glue functionality to access metadata.
- JS files have been refactored to match python directory structure.
- Attr factories refactored into specific directory.
- Glue form field entity and js objects to match backend entities.
- Glue form fields require base information that surround the field and attrs are now specific to field attrs.
- Removed binder js and constructed fields with alpine js.
- Enhanced how glue form fields and glue model fields pass data to templates.
- Factories to create all objects.
- Simplified how glue form fields can be constructed.

js
let person = new GlueModelObject('person')
await person.get()

// Old Method
person.fields.first_name // Returns glue field data

// Refactored Method
person.glue_fields.first_name // Returns glue field object



html
// Old Method
{% include 'django_glue/form/glue_field/char_field.html' with glue_field='person.fields.first_name' x_model_value='person.first_name' %}
{% include 'django_glue/form/glue_field/char_field.html' with glue_field='best_friend' x_model_value='best_friend.value' %}

// Refactored Method
{% include 'django_glue/form/glue_field/char_field.html' with glue_model_field='person.first_name' %}
{% include 'django_glue/form/glue_field/char_field.html' with glue_field='best_friend' %}

0.6.3

Features
- Glue Query Set entities now can return themselves as choices for a select field.
Bugs
- Correct form key naming on relational model fields

0.6.2

Features
- Added a glue_fetch function for a quick an easy shortcut for making a fetch.

0.6.1

Bugs
- Fixed the template tags for bootstrap and alpine
- Fixed bug with using UUID primary keys

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.