Comments (2)
Thanks for that, it should prove very useful for lots of people. Will it work in the project if the rules are in the file where the field is declared?
Also, if you'd like to submit a pull request, I can merge it in right away (but please make sure to catch exceptions in the south
import, for people who don't use it), otherwise I can do it myself tomorrow.
from django-annoying.
That code snippet is typically inserted at the bottom of the file where the field is declared. As long as it gets loaded whenever the field is used somewhere it should be fine.
The docs about custom fields and south are here: http://south.readthedocs.org/en/latest/customfields.html
I didn't make a pull request yet, because I've not had time to create the appropriate rules for the other fields. I just happened to use AutoOneToOneField
in one of my projects using south.
I'll see if you can put together a pull request for all the fields sometime this week.
from django-annoying.
Related Issues (20)
- Django 3.2 compatibility? HOT 1
- Django5 Support? HOT 1
- Possible to add support for types? HOT 2
- Can we get Pypi updated with the thread safe changes? HOT 1
- Test don't run against Django 1.7+ HOT 2
- Django 1.9 HOT 6
- Django 1.9: Cannot import name SingleRelatedObjectDescriptor HOT 4
- JSONField is not working in Django 1.9+
- AutoOneToOne doesn't work HOT 14
- Remove pretty-print from the JSON field output or make it configurable HOT 2
- Django 1.11 middleware HOT 3
- Please add a release with a universal wheel to PyPI HOT 1
- Could you publish a new release? HOT 4
- AutoOneToOneField breaks Django admin lookups HOT 5
- Using AutoOneToOneField with proxy model HOT 2
- Race Condition Fix HOT 3
- Setting HTTP status code when using ajax_request HOT 3
- ImportError: cannot import name 'six' HOT 2
- I know this is ancient history but a breaking change in a point release? HOT 6
- Support for django v3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-annoying.