Comments (7)
I considered suggesting settings move to settings.py-- although I admit being able to edit them in the Wordpress admin is a nice feature of RAMP.
I'd be on board for migrating them to settings.py or a separate file if you agree.
from django-nudge.
Yeah, I like the ability to edit them in admin, too. Is it safe to assume pk will always be 1? Will the admin enforce this? If not should we enforce that just one record exists no matter what the id and just grab it?
from django-nudge.
Right now admin does enforce it
On Feb 4, 2012, at 11:48 AM, Joshua [email protected] wrote:
Yeah, I like the ability to edit them in admin, too. Is it safe to assume pk will always be 1? Will the admin enforce this? If not should we enforce that just one record exists no matter what the id and just grab it?
Reply to this email directly or view it on GitHub:
https://github.com/jroo/django-nudge/issues/9#issuecomment-3811335
from django-nudge.
Nice. Does admin explicitly enforce that the id will always be 1 or does it just enforce one record (and the id could be anything)?
from django-nudge.
It doesn't acknowledge that other settings objects might exist: if you try to add one or look at the list, it does a get_or_create for pk=1, and redirects you to edit it
On Feb 4, 2012, at 2:19 PM, Joshua [email protected] wrote:
Nice. Does admin explicitly enforce that the id will always be 1 or does it just enforce one record (and the id could be anything)?
Reply to this email directly or view it on GitHub:
https://github.com/jroo/django-nudge/issues/9#issuecomment-3812501
from django-nudge.
Thanks fo the clarification. I'm closing this since settings should assume that pk=1.
from django-nudge.
http://word.bitly.com/post/19183796149/infrastructure-as-a-platform
from django-nudge.
Related Issues (20)
- Show change type in 'Add Batch' screen HOT 2
- Create test batch HOT 1
- Remove batch items from admin view HOT 1
- Remove unused settings HOT 1
- Allow nudgeinit of specific models HOT 1
- Each model should have a 'can_nudge' permission
- Tests are broken
- client.push_test_batch uses undefined function serialize_batch
- setup.py lists wrong download url HOT 1
- Package data / Manifest lists a non existing directory
- Nudging files HOT 2
- process_batch wreaks havoc on postgres sequences
- What's the use of batch.start_date HOT 1
- can't undo many-to-many relationships
- Nudge needs a "never push" option for tables that *shouldn't* be automatically updated
- In Nudge audit logs, the Nudge-er username should be recorded
- Choose a license HOT 4
- Implement table synchronization
- Implement working copies
- Clean up issues and broadcast state of project
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-nudge.