django-custom-field

Software Screenshot:
django-custom-field
Software Details:
Version: 1.3
Upload Date: 14 Apr 15
Developer: David Burke
Distribution Type: Freeware
Downloads: 30

Rating: 4.0/5 (Total Votes: 1)

django-custom-field is a Django app that allows end users to create easy (but slower to work with) fields attached to any Django model. Includes support so fields show up in the admin interface and helper functions that make it easy to access any custom fields programmatically.

Does not alter sql when adding a new field. Does not allow you use to custom fields in django ORM mymodel.objects.filter(custom_field_x=Whatever)

Installation

- easy_install django-custom-field
- Add 'custom_field' to settings.INSTALLED_APPS
- Optional: Edit the change_form.html and add

 {% include "admin/includes/custom_field_fieldset.html" with custom_form=custom_form %}

 to it, probably after fieldsets. If you don't already have a change_form.html you will need to extend contrib.admin's template and place it in /templates/admin/change_form.html

- Optional: For shortcut methods to get and set custom fields, extend models you want to use it with like

 from custom_field.custom_field import CustomFieldModel
 class MyModel(CustomFieldModel):


- Optional: For admin models you want to have custom fields shown on extend the ModelAdmin like

 from custom_field.custom_field import CustomFieldAdmin
 class MyModelAdmin(CustomFieldAdmin):

Requirements:

  • Python
  • Django

Other Software of Developer David Burke

Comments to django-custom-field

Comments not found
Add Comment
Turn on images!