Django-angular-dynamic-forms

Latest version: v6.1.3

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

Scan your dependencies

Page 1 of 2

6.1.2

Added ANGULAR_FORM_ABSOLUTE_URLS to django settings for cases where django server and angular are on different hosts/ports (CORS)
- setting this constant to True will instruct backend to emit absolute URLS

added valueChanged emitter to in-page dialogs
- see console output in all controls demo

1.1.1

Custom save method for a form via `form_action` decorator.

Example:


class CityViewSet(AngularFormMixin, viewsets.ModelViewSet):
...
form_layouts = {
'custom': ['name']
}

form_id + the same parameters as DRF's action decorator
form_action(form_id='custom', detail=False, url_path='custom', methods=['GET', 'POST'])
def custom_form_action(self, request):
if request.method == 'POST':
zipcode is a required field
request.data['zipcode'] = lookup_zipcode(request.data['city'])
return super().create(request)
return super().retrieve(request)



this.dialog.open('/api/1.0/cities/', {
formId: 'custom'
}).subscribe(result => {
console.log(result);
});

0.7.1

class Company(models.Model):
...

class Contact(models.Model):
company = models.ForeignKey(Company)

This release adds means to create (for a given company) a new contact and link it automatically.
See the foreign/create demo for usage details.

0.6.3

0.5.44

0.5.22

See the demo for a proof

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.