Answer the question
In order to leave comments, you need to log in
Partial integration of angular and django admin?
There is a django admin panel. I connect the angularjs module to it, and write a custom widget
<div class="id_footnotes" style="display: block;height: 100%;float: left;">
<div class="footnote_blk">
<div ng-repeat="field in footn_fields">
<input type="text" ng-model="footn_fields[$index]" ng-model-options="{updateOn: 'blur'}" />
</div>
<div ng-click="addFootnote();" style="cursor: pointer;">
<img src="/static/admin/img/icon-addlink.svg" alt="Добавить">
</div>
<input type="hidden" id="id_footnotes" name="footnotes" ng-model="my_field.data"/>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question