Skip to content

Releases: Mathison-AG/django-angular-dynamic-forms

CORS requests, valueChanged emitter

01 Jul 21:19
Compare
Choose a tag to compare

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

Custom save method for form data

31 May 11:30
Compare
Choose a tag to compare

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);
    });

Support for creation of objects related by foreign key

03 Mar 18:37
Compare
Choose a tag to compare

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.

Support for M2M fields

22 Feb 13:48
Compare
Choose a tag to compare
0.6.3

version 0.6.3: Angular update

Supporting foreign keys

21 Feb 19:12
Compare
Choose a tag to compare
0.5.44

version 0.5.44: Finished the first iteration of support for foreign k…

First usable release both in NPM & PIP

11 Feb 19:52
Compare
Choose a tag to compare

See the demo for a proof

Error propagation

10 Feb 19:13
Compare
Choose a tag to compare
Error propagation Pre-release
Pre-release

Propagating errors to formsets, columns and groups

Support for email, fieldsets, groups and columns

10 Feb 17:48
Compare
Choose a tag to compare

See the AllControlsComponent in demo/angular for details

PIP & NPM

08 Feb 15:44
Compare
Choose a tag to compare
PIP & NPM Pre-release
Pre-release

first version deployed to pip & npm

v0.1.0

01 Oct 14:47
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Pre-release for testing django setup code